constant.rst 216B

12345678910
  1. ``constant``
  2. ============
  3. ``constant`` returns the constant value for a given string:
  4. .. code-block:: jinja
  5. {{ some_date|date(constant('DATE_W3C')) }}
  6. {{ constant('Namespace\\Classname::CONSTANT_NAME') }}