mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 18:36:53 +00:00
add another example
add another example to constant.rst
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|
||||||
{{ some_date|date(constant('DATE_W3C')) }}
|
{{ some_date|date(constant('DATE_W3C')) }}
|
||||||
|
{{ constant('Namespace\\Classname::CONSTANT_NAME') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user