aboutsummaryrefslogtreecommitdiffstats
path: root/book
diff options
context:
space:
mode:
Diffstat (limited to 'book')
-rw-r--r--book/src/template_syntax.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md
index d270800..5e69bc9 100644
--- a/book/src/template_syntax.md
+++ b/book/src/template_syntax.md
@@ -87,6 +87,18 @@ This discards all whitespace inside the if/else block. If a literal
includes only whitespace, whitespace suppression on either side will
completely suppress that literal content.
+If the whitespace default control is set to "suppress" and you want
+to keep whitespace characters on one side of a block or of an
+expression, you need to use `+`. Example:
+
+```text
+<a href="/" {#+ #}
+ class="something">text</a>
+```
+
+In the above example, it allows to keep one whitespace character
+between the `href` and the `class` attributes.
+
## Template inheritance
Template inheritance allows you to build a base template with common