mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 15:07:11 +00:00
Fix versionadded in doc
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
``block``
|
||||
=========
|
||||
|
||||
.. versionadded: 1.28
|
||||
.. versionadded:: 1.28
|
||||
Using ``block`` with the ``defined`` test was added in Twig 1.28.
|
||||
|
||||
.. versionadded: 1.28
|
||||
.. versionadded:: 1.28
|
||||
Support for the template argument was added in Twig 1.28.
|
||||
|
||||
When a template uses inheritance and if you want to print a block multiple
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
``constant``
|
||||
============
|
||||
|
||||
.. versionadded: 1.12.1
|
||||
.. versionadded:: 1.12.1
|
||||
constant now accepts object instances as the second argument.
|
||||
|
||||
.. versionadded: 1.28
|
||||
.. versionadded:: 1.28
|
||||
Using ``constant`` with the ``defined`` test was added in Twig 1.28.
|
||||
|
||||
``constant`` returns the constant value for a given string:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
``constant``
|
||||
============
|
||||
|
||||
.. versionadded: 1.13.1
|
||||
.. versionadded:: 1.13.1
|
||||
constant now accepts object instances as the second argument.
|
||||
|
||||
``constant`` checks if a variable has the exact same value as a constant. You
|
||||
|
||||
Reference in New Issue
Block a user