From 0eeb5d1b2d998f3ea56b5682f618a57443cd8aef Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 7 Mar 2017 21:00:44 +0100 Subject: Add test for nested loops and loops over slices (see #6, #7, #9) --- testing/templates/nested-for.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testing/templates/nested-for.html (limited to 'testing/templates') 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 %} -- cgit