tweaked the iterable example in the docs

This commit is contained in:
Fabien Potencier
2012-04-21 07:33:50 +02:00
parent a929d0336b
commit fa0b0985c3
+4 -2
View File
@@ -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 %}