diff options
author | vallentin <mail@vallentin.dev> | 2020-12-18 13:23:41 +0100 |
---|---|---|
committer | Christian Vallentin <vallentinsource@gmail.com> | 2020-12-18 15:05:26 +0100 |
commit | 61912c55859bb3defa74bd2872798f89af5f4678 (patch) | |
tree | 2e6e4efe05f9e1c64de48494a5b8c258b62126b7 /book/src/template_syntax.md | |
parent | b7483faa3e956a8f2955a2542536c8b676d74ec1 (diff) | |
download | askama-61912c55859bb3defa74bd2872798f89af5f4678.tar.gz askama-61912c55859bb3defa74bd2872798f89af5f4678.tar.bz2 askama-61912c55859bb3defa74bd2872798f89af5f4678.zip |
Updated book to include nested comments
Diffstat (limited to 'book/src/template_syntax.md')
-rw-r--r-- | book/src/template_syntax.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md index befde8f..c3635eb 100644 --- a/book/src/template_syntax.md +++ b/book/src/template_syntax.md @@ -330,10 +330,19 @@ using a vector of templates in a for block. Askama supports block comments delimited by `{#` and `#}`. -``` +```jinja {# A Comment #} ``` +Like Rust, Askama also supports nested block comments. + +```jinja +{# +A Comment +{# A nested comment #} +#} +``` + ## Recursive Structures Recursive implementations should preferably use a custom iterator and |