mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
tweaked the iterable example in the docs
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
.. code-block:: jinja
|
||||
|
||||
{# evaluates to true if the foo variable is iterable #}
|
||||
{% if foo is iterable %}
|
||||
...
|
||||
{% if users is iterable %}
|
||||
{% for user in users %}
|
||||
- {{ user }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user