aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-16 12:51:11 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-16 12:51:11 +0200
commitd7ac0825e0759cde171670175a5e129ad1f2af10 (patch)
treeabc8746d431fa6193a0347273ac7a52aecd022ff /testing/templates
parent05597b61daabfa1ab4c675c2943ceeefcb82db36 (diff)
downloadaskama-d7ac0825e0759cde171670175a5e129ad1f2af10.tar.gz
askama-d7ac0825e0759cde171670175a5e129ad1f2af10.tar.bz2
askama-d7ac0825e0759cde171670175a5e129ad1f2af10.zip
Add test for variable declaration
Diffstat (limited to '')
-rw-r--r--testing/templates/let-decl.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/templates/let-decl.html b/testing/templates/let-decl.html
new file mode 100644
index 0000000..d348903
--- /dev/null
+++ b/testing/templates/let-decl.html
@@ -0,0 +1,7 @@
+{% let val -%}
+{% if cond -%}
+ {% let val = "foo" -%}
+{% else -%}
+ {% let val = s -%}
+{% endif -%}
+{{ val }}