From d7ac0825e0759cde171670175a5e129ad1f2af10 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 16 Aug 2017 12:51:11 +0200 Subject: Add test for variable declaration --- testing/templates/let-decl.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testing/templates/let-decl.html (limited to 'testing/templates') 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 }} -- cgit