diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-11 11:19:20 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-11 11:19:20 +0200 |
commit | c0a33617f9d304933322496c1b7b36f0d3882c1b (patch) | |
tree | 0353e2e4bd6144390fcb5ee202484df52da131fa /tests/data | |
parent | 04c28f10c56b36e0754b375e3e1209d472bb9584 (diff) |
Move some templating code to the collection instead of commands.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/simple/templates/collection_template.txt | 4 | ||||
-rw-r--r-- | tests/data/simple/templates/trivial_template.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/data/simple/templates/collection_template.txt b/tests/data/simple/templates/collection_template.txt new file mode 100644 index 0000000..8873e1e --- /dev/null +++ b/tests/data/simple/templates/collection_template.txt @@ -0,0 +1,4 @@ +{% for entry in entries %} +{{ entry.short_id }}: {{ entry.data.name }} + {{ entry.data.description }} +{% endfor %} diff --git a/tests/data/simple/templates/trivial_template.txt b/tests/data/simple/templates/trivial_template.txt new file mode 100644 index 0000000..df31f0c --- /dev/null +++ b/tests/data/simple/templates/trivial_template.txt @@ -0,0 +1 @@ +{{ entry }} |