diff options
Diffstat (limited to 'plugins/warp/src/templates')
| -rw-r--r-- | plugins/warp/src/templates/file.html | 37 | ||||
| -rw-r--r-- | plugins/warp/src/templates/file.json | 21 | ||||
| -rw-r--r-- | plugins/warp/src/templates/file.md | 15 |
3 files changed, 73 insertions, 0 deletions
diff --git a/plugins/warp/src/templates/file.html b/plugins/warp/src/templates/file.html new file mode 100644 index 00000000..7ea465ef --- /dev/null +++ b/plugins/warp/src/templates/file.html @@ -0,0 +1,37 @@ +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{{ title }}</title> +</head> +<body> +<h1>{{ title }}</h1> + +{% for chunk in chunks %} +<section> + <h2>{{ chunk.title }}</h2> + <p>Target: {{ chunk.target }}</p> + <p>Total items: {{ chunk.total_item_count }}</p> + + <table> + <thead> + <tr> + <th>GUID</th> + <th>Name</th> + <th>Note</th> + </tr> + </thead> + <tbody> + {% for item in chunk.item_view %} + <tr> + <td>{{ item.guid }}</td> + <td>{{ item.name or 'N/A' }}</td> + <td>{{ item.note or 'N/A' }}</td> + </tr> + {% endfor %} + </tbody> + </table> +</section> +{% endfor %} +</body> +</html>
\ No newline at end of file diff --git a/plugins/warp/src/templates/file.json b/plugins/warp/src/templates/file.json new file mode 100644 index 00000000..764d35cd --- /dev/null +++ b/plugins/warp/src/templates/file.json @@ -0,0 +1,21 @@ +{ + "title": "{{ title }}", + "chunks": [ + {% for chunk in chunks %} + { + "title": "{{ chunk.title }}", + "target": "{{ chunk.target }}", + "total_item_count": {{ chunk.total_item_count }}, + "item_view": [ + {% for item in chunk.item_view %} + { + "guid": "{{ item.guid }}", + "name": "{{ item.name or 'N/A' }}", + "note": "{{ item.note or 'N/A' }}" + }{% if not loop.last %},{% endif %} + {% endfor %} + ] + }{% if not loop.last %},{% endif %} + {% endfor %} + ] +}
\ No newline at end of file diff --git a/plugins/warp/src/templates/file.md b/plugins/warp/src/templates/file.md new file mode 100644 index 00000000..433cb8e9 --- /dev/null +++ b/plugins/warp/src/templates/file.md @@ -0,0 +1,15 @@ +# {{ title }} + +{% for chunk in chunks %} +## {{ chunk.title }} + +Target: {{ chunk.target }} + +Total items: {{ chunk.total_item_count }} + +| GUID | Name | Note | +|--------------|--------------|--------------| +{% for item in chunk.item_view -%} +| {{ item.guid }} | {{ item.name or 'N/A' }} | {{ item.note or 'N/A' }} | +{% endfor %} +{% endfor %} |
