From 8b4d0d5d18c0b60ed3365f442385ee253981d5d4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 19 Nov 2020 19:59:49 +0100 Subject: tests: prefer `let` over `local` Promote the use of `let` to move ucode examples closer to ES syntax. Signed-off-by: Jo-Philipp Wich --- tests/00_syntax/11_misc_literals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/00_syntax/11_misc_literals') diff --git a/tests/00_syntax/11_misc_literals b/tests/00_syntax/11_misc_literals index 4b33a78..372741c 100644 --- a/tests/00_syntax/11_misc_literals +++ b/tests/00_syntax/11_misc_literals @@ -9,7 +9,7 @@ The "false" keyword represents a false boolean value: false -- End -- -- Testcase -- -{% local t = { f: function() { return this; } } %} +{% let t = { f: function() { return this; } } %} The "this" keyword refers to the current function context: {{ type(t.f()) }} The "null" keyword represents the null value: {{ "" + null }} The "true" keyword represents a true boolean value: {{ true }} -- cgit v1.2.3