From b1bb29d292e5dbb37ba1116b26bcb1ab8d622dd5 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 12 Oct 2022 14:54:21 -0700 Subject: [PATCH] Show how {% filter %} can take filter arguments Closes #1732 --- docs/templates.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/templates.rst b/docs/templates.rst index 86d01a6e3..ad177419e 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: