aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-07 21:00:44 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-07 21:00:44 +0100
commit0eeb5d1b2d998f3ea56b5682f618a57443cd8aef (patch)
tree2764ff47873085265047cc155e71af5f465f37d9 /testing/templates
parenta0a3e4018c9fe1d23e0b53651804939a2711edde (diff)
downloadaskama-0eeb5d1b2d998f3ea56b5682f618a57443cd8aef.tar.gz
askama-0eeb5d1b2d998f3ea56b5682f618a57443cd8aef.tar.bz2
askama-0eeb5d1b2d998f3ea56b5682f618a57443cd8aef.zip
Add test for nested loops and loops over slices (see #6, #7, #9)
Diffstat (limited to '')
-rw-r--r--testing/templates/nested-for.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/templates/nested-for.html b/testing/templates/nested-for.html
new file mode 100644
index 0000000..6e0cd72
--- /dev/null
+++ b/testing/templates/nested-for.html
@@ -0,0 +1,6 @@
+{% for seq in seqs -%}
+ {{ loop.index }}
+ {% for v in seq -%}
+ {{ loop.index0 }}{{ v }}
+ {%- endfor -%}
+{% endfor %}