Skip to content

Commit 7e88bd0

Browse files
committed
chore: document trimming behaviour
1 parent 29cda4a commit 7e88bd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ sourceSets {
3333
}
3434
```
3535

36+
> [!IMPORTANT]
37+
> When processing templates, Pebble will trim newlines immediately after a template tag.
38+
> This might not be desired when using formats like YAML or Java properties files, so Blossom offers a way to disable this behaviour:
39+
>
40+
> Add a `trimNewlines = false` line to the template set block and stripping will be disabled for any templates in the set.
41+
3642
Then place a file in the `src/main/resource-templates` folder:
3743

3844
`build-vars.properties`:

0 commit comments

Comments
 (0)