aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar yossyJ <28825627+yossyJ@users.noreply.github.com>2019-01-04 23:12:44 +0900
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-01-04 16:58:09 +0100
commitbef88f1696b828caf72695561c2270456f35894d (patch)
treefb83e8f9fe1b05a49c18c43adef96a366dc18f6e /testing/templates
parent39e08325c0e0fba75384579427d1c6f7eca8fbc9 (diff)
downloadaskama-bef88f1696b828caf72695561c2270456f35894d.tar.gz
askama-bef88f1696b828caf72695561c2270456f35894d.tar.bz2
askama-bef88f1696b828caf72695561c2270456f35894d.zip
Add support for tuple
Diffstat (limited to '')
-rw-r--r--testing/templates/for.html3
-rw-r--r--testing/templates/let.html1
2 files changed, 4 insertions, 0 deletions
diff --git a/testing/templates/for.html b/testing/templates/for.html
index 8b4032d..f749752 100644
--- a/testing/templates/for.html
+++ b/testing/templates/for.html
@@ -1,3 +1,6 @@
{% for s in strings %}
{{- loop.index0 }}. {{ s }}{% if loop.first %} (first){% endif %}
{% endfor %}
+{% for (s1, s2) in tuple_strings %}
+ {{- loop.index0 }}. {{ s1 }},{{ s2 }}{% if loop.first %} (first){% endif %}
+{% endfor %}
diff --git a/testing/templates/let.html b/testing/templates/let.html
index 5b19255..034e8d4 100644
--- a/testing/templates/let.html
+++ b/testing/templates/let.html
@@ -1 +1,2 @@
{% let v = s %}{{ v }}
+{% let (v1,v2) = t %}{{ v1 }}{{ v2 }} \ No newline at end of file