Filters: default, join & upper
Transform values inside templates.
What a Filter Does
A filter transforms a value on its way to output. You apply one with a pipe, reading left to right like a tiny pipeline. 🧰
{{ name | upper }}The upper Filter
The upper filter shouts a string into all capitals, while lower does the opposite. Great for normalizing text.
{{ region | upper }}
{{ region | lower }}All lessons in this course
- The template Module & .j2 Files
- Variables & Expressions in Jinja2
- Loops & if Blocks in Templates
- Filters: default, join & upper