diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-19 19:59:49 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-19 19:59:49 +0100 |
commit | 8b4d0d5d18c0b60ed3365f442385ee253981d5d4 (patch) | |
tree | 46c209a74f1de655a22242691ea5813df304b1f3 /tests/00_syntax/11_misc_literals | |
parent | a162cf7aadacd08eb11af072bcb9dd041866b579 (diff) |
tests: prefer `let` over `local`
Promote the use of `let` to move ucode examples closer to ES syntax.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/00_syntax/11_misc_literals')
-rw-r--r-- | tests/00_syntax/11_misc_literals | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |