aboutsummaryrefslogtreecommitdiffstats
path: root/book/src/configuration.md
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2022-04-21 15:41:12 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-04-21 16:09:24 +0200
commit358f7cd07dc42ba4189d2661461ff0b43a27c304 (patch)
treed9d98265098ee59dce148a25d1dbd9464095354b /book/src/configuration.md
parenta64a7273319244813c657d912a0579f5619f0621 (diff)
downloadaskama-358f7cd07dc42ba4189d2661461ff0b43a27c304.tar.gz
askama-358f7cd07dc42ba4189d2661461ff0b43a27c304.tar.bz2
askama-358f7cd07dc42ba4189d2661461ff0b43a27c304.zip
Update `whitespace` documentation
Diffstat (limited to 'book/src/configuration.md')
-rw-r--r--book/src/configuration.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index 05c18a0..acc9751 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -12,7 +12,7 @@ This example file demonstrates the default configuration:
# Directories to search for templates, relative to the crate root.
dirs = ["templates"]
# Unless you add a `-` in a block, whitespace won't be trimmed.
-suppress_whitespace = false
+whitespace = "preserve"
```
In the default configuration, you can use the `-` operator to indicate that
@@ -28,7 +28,7 @@ Hello
```
In the template above, only the whitespace between `<div>` and `{%-` will be
-suppressed. If you enable `suppress_whitespace`, whitespace characters before
+suppressed. If you set `whitespace` to `"suppress"`, whitespace characters before
and after each block will be suppressed by default. To preserve the whitespace
characters, you can use the `+` operator: