Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 716f7ed

Browse files
Add documentation for filter chaining on filter block
1 parent 1f7d1b4 commit 716f7ed

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

book/src/template_syntax.md

+11
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ blocks**:
9898

9999
The `lower` filter will be applied on the whole content.
100100

101+
Just like filters, you can combine them:
102+
103+
```text
104+
{% filter lower|capitalize %}
105+
{{ t }} / HELLO / {{ u }}
106+
{% endfilter %}
107+
```
108+
109+
In this case, `lower` will be called and then `capitalize` will be
110+
called on what `lower` returned.
111+
101112
## Whitespace control
102113

103114
Askama considers all tabs, spaces, newlines and carriage returns to be

0 commit comments

Comments
 (0)