From: Simon Willison Date: Wed, 12 Oct 2022 21:54:21 +0000 (-0700) Subject: Show how {% filter %} can take filter arguments X-Git-Tag: 3.1.3~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1733%2Fhead;p=thirdparty%2Fjinja.git Show how {% filter %} can take filter arguments Closes #1732 --- diff --git a/docs/templates.rst b/docs/templates.rst index 86d01a6e..ad177419 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -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: