Skip to content

Commit

Permalink
Document changes of pallets#1712 in docs/templates
Browse files Browse the repository at this point in the history
for both support for trailing commas for
- macro signatures
- with statements
  • Loading branch information
Zocker1999NET committed Nov 6, 2022
1 parent 921584b commit 7f19e51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,8 @@ override a macro in a parent template. The following will output
{% macro foo() %}CHILD{% endmacro %}
{% block body %}{{ foo() }}{% endblock %}
.. versionadded:: 3.2.0 Added support for trailing commas in macro signatures


.. _call:

Expand Down Expand Up @@ -1921,6 +1923,9 @@ use the ``set`` tag::
In older versions of Jinja (before 2.9) it was required to enable this
feature with an extension. It's now enabled by default.

.. versionadded:: 3.2.0 Added support for trailing commas in with statements


.. _autoescape-overrides:

Autoescape Overrides
Expand Down

0 comments on commit 7f19e51

Please sign in to comment.