aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/let-destruct-tuple.html
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2021-07-01 12:58:13 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-07-05 13:48:41 +0200
commit44c0623a581413bba0dc59f8de72abc5dded843f (patch)
treed408ba81801629f89c71d5ed32140cfbe74bee7c /testing/templates/let-destruct-tuple.html
parent8adee24836738e626f06d6f677a9e8621108ca66 (diff)
downloadaskama-44c0623a581413bba0dc59f8de72abc5dded843f.tar.gz
askama-44c0623a581413bba0dc59f8de72abc5dded843f.tar.bz2
askama-44c0623a581413bba0dc59f8de72abc5dded843f.zip
Add tuple destructoring tests
Diffstat (limited to 'testing/templates/let-destruct-tuple.html')
-rw-r--r--testing/templates/let-destruct-tuple.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/templates/let-destruct-tuple.html b/testing/templates/let-destruct-tuple.html
new file mode 100644
index 0000000..395e872
--- /dev/null
+++ b/testing/templates/let-destruct-tuple.html
@@ -0,0 +1,3 @@
+{% let (a, ((b, c), (d))) = abcd %}{{a}}{{b}}{{c}}{{d}}
+{% let (a, (_, d)) = abcd %}{{a}}{{d}}
+{% let (((a))) = abcd.0 %}{{a}}