Skip to content

Commit

Permalink
Show how {% filter %} can take filter arguments (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Oct 13, 2022
2 parents 0a10079 + b1bb29d commit bf25151
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,9 @@ template data. Just wrap the code in the special `filter` section::
This text becomes uppercase
{% endfilter %}

Filters that accept arguments can be called like this::

{% filter center(100) %}Center this{% endfilter %}

.. _assignments:

Expand Down

0 comments on commit bf25151

Please sign in to comment.