From 64cf183ed4b54385391eac6b8f57edb162663706 Mon Sep 17 00:00:00 2001 From: vallentin Date: Tue, 15 Dec 2020 19:01:30 +0100 Subject: Updated book to include set alias --- book/src/template_syntax.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'book/src/template_syntax.md') diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md index 3f89213..befde8f 100644 --- a/book/src/template_syntax.md +++ b/book/src/template_syntax.md @@ -16,7 +16,7 @@ Inside code blocks, you can also declare variables or assign values to variables. Assignments can't be imported by other templates. -Assignments use the let tag: +Assignments use the `let` tag: ```text {% let name = user.name %} @@ -31,6 +31,8 @@ Assignments use the let tag: {{ val }} ``` +For compatibility with Jinja, `set` can be used in place of `let`. + ## Filters Values such as those obtained from variables can be post-processed -- cgit