tweaked the iterable example in the docs
authorFabien Potencier <fabien.potencier@gmail.com>
Sat, 21 Apr 2012 05:33:50 +0000 (07:33 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Sat, 21 Apr 2012 05:33:50 +0000 (07:33 +0200)
doc/tests/iterable.rst

index c0bc709..ed0c2b7 100644 (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 %}