mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
minor #2247 Missing docs (fabpot)
This PR was merged into the 1.x branch.
Discussion
----------
Missing docs
Commits
-------
065b2e2 added missing docs
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user