diff options
Diffstat (limited to '')
-rw-r--r-- | book/src/configuration.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md index 6e8d581..2311e7d 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -57,6 +57,20 @@ character remaining will be a newline. If you want this to be the default behaviour, you can set `whitespace` to `"minimize"`. +To be noted: you can also configure `whitespace` directly into the `template` +derive proc macro: + +```rust +#[derive(Template)] +#[template(whitespace = "suppress")] +pub struct SomeTemplate; +``` + +If you configure `whitespace` directly into the `template` derive proc-macro, +it will take precedence over the one in your configuration file. So in this +case, if you already set `whitespace = "minimize` into your configuration file, +it will be replaced by `suppress` for this template. + ## Custom syntaxes Here is an example that defines two custom syntaxes: |