]> git.immae.eu Git - github/wallabag/wallabag.git/blame - vendor/twig/twig/doc/tags/filter.rst
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / doc / tags / filter.rst
CommitLineData
4f5b44bd
NL
1``filter``
2==========
3
4Filter sections allow you to apply regular Twig filters on a block of template
5data. Just wrap the code in the special ``filter`` section:
6
7.. code-block:: jinja
8
9 {% filter upper %}
10 This text becomes uppercase
11 {% endfilter %}
12
13You can also chain filters:
14
15.. code-block:: jinja
16
17 {% filter lower|escape %}
18 <strong>SOME TEXT</strong>
19 {% endfilter %}
20
21 {# outputs "&lt;strong&gt;some text&lt;/strong&gt;" #}