4 .. versionadded: 1.12.1
5 constant now accepts object instances as the second argument.
7 ``constant`` returns the constant value for a given string:
11 {{ some_date|date(constant('DATE_W3C')) }}
12 {{ constant('Namespace\\Classname::CONSTANT_NAME') }}
14 As of 1.12.1 you can read constants from object instances as well:
18 {{ constant('RSS', date) }}