From bef88f1696b828caf72695561c2270456f35894d Mon Sep 17 00:00:00 2001 From: yossyJ <28825627+yossyJ@users.noreply.github.com> Date: Fri, 4 Jan 2019 23:12:44 +0900 Subject: Add support for tuple --- testing/templates/for.html | 3 +++ testing/templates/let.html | 1 + 2 files changed, 4 insertions(+) (limited to 'testing/templates') 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 -- cgit