Skip to content

Commit

Permalink
Show how {% filter %} can take filter arguments
Browse files Browse the repository at this point in the history
Closes #1732
  • Loading branch information
simonw authored and davidism committed Oct 13, 2022
1 parent 0a10079 commit b1bb29d
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 b1bb29d

Please sign in to comment.