diff options
Diffstat (limited to 'book/src')
-rw-r--r-- | book/src/template_syntax.md | 4 |
1 files changed, 3 insertions, 1 deletions
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 |