diff options
author | vallentin <mail@vallentin.dev> | 2020-12-15 19:01:30 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-12-16 09:09:03 +0100 |
commit | 64cf183ed4b54385391eac6b8f57edb162663706 (patch) | |
tree | eaee72d5ada4549535f9ae205ef201583dfdac75 | |
parent | cf7dcc1fb188a28672e33819ca9733bc8c1b472f (diff) | |
download | askama-64cf183ed4b54385391eac6b8f57edb162663706.tar.gz askama-64cf183ed4b54385391eac6b8f57edb162663706.tar.bz2 askama-64cf183ed4b54385391eac6b8f57edb162663706.zip |
Updated book to include set alias
-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 |