diff --git a/doc/functions/block.rst b/doc/functions/block.rst index 2f3de2456..84460b5f5 100644 --- a/doc/functions/block.rst +++ b/doc/functions/block.rst @@ -1,6 +1,9 @@ ``block`` ========= +.. versionadded: 1.28 + Using ``block`` with the ``defined`` test was added in Twig 1.28. + When a template uses inheritance and if you want to print a block multiple times, use the ``block`` function: diff --git a/doc/functions/constant.rst b/doc/functions/constant.rst index 9c1ed23fd..97aa5c8f3 100644 --- a/doc/functions/constant.rst +++ b/doc/functions/constant.rst @@ -4,6 +4,9 @@ .. versionadded: 1.12.1 constant now accepts object instances as the second argument. +.. versionadded: 1.28 + Using ``constant`` with the ``defined`` test was added in Twig 1.28. + ``constant`` returns the constant value for a given string: .. code-block:: jinja