From 61912c55859bb3defa74bd2872798f89af5f4678 Mon Sep 17 00:00:00 2001 From: vallentin Date: Fri, 18 Dec 2020 13:23:41 +0100 Subject: Updated book to include nested comments --- book/src/template_syntax.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'book') 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 -- cgit