aboutsummaryrefslogtreecommitdiffstats
path: root/book
diff options
context:
space:
mode:
authorLibravatar vallentin <mail@vallentin.dev>2020-12-18 13:23:41 +0100
committerLibravatar Christian Vallentin <vallentinsource@gmail.com>2020-12-18 15:05:26 +0100
commit61912c55859bb3defa74bd2872798f89af5f4678 (patch)
tree2e6e4efe05f9e1c64de48494a5b8c258b62126b7 /book
parentb7483faa3e956a8f2955a2542536c8b676d74ec1 (diff)
downloadaskama-61912c55859bb3defa74bd2872798f89af5f4678.tar.gz
askama-61912c55859bb3defa74bd2872798f89af5f4678.tar.bz2
askama-61912c55859bb3defa74bd2872798f89af5f4678.zip
Updated book to include nested comments
Diffstat (limited to 'book')
-rw-r--r--book/src/template_syntax.md11
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