From: Vitor Buxbaum Date: Fri, 17 Nov 2023 12:04:42 +0000 (-0300) Subject: Fix typo on filter name X-Git-Tag: 3.1.5~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1911%2Fhead;p=thirdparty%2Fjinja.git Fix typo on filter name --- diff --git a/docs/api.rst b/docs/api.rst index cb62f6c3..c0fa163a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -666,8 +666,8 @@ Now it can be used in templates: .. sourcecode:: jinja - {{ article.pub_date|datetimeformat }} - {{ article.pub_date|datetimeformat("%B %Y") }} + {{ article.pub_date|datetime_format }} + {{ article.pub_date|datetime_format("%B %Y") }} Some decorators are available to tell Jinja to pass extra information to the filter. The object is passed as the first argument, making the value