Files
Twig/doc/filters/keys.rst
T
2011-09-27 08:43:35 +02:00

12 lines
219 B
ReStructuredText

``keys``
========
The ``keys`` filter returns the keys of an array. It is useful when you want to
iterate over the keys of an array:
.. code-block:: jinja
{% for key in array|keys %}
...
{% endfor %}