From 07a953e01622bf2d3f57ac4fcfa4724fa2143075 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 21 Apr 2012 15:46:19 +0200 Subject: [PATCH] tweaked the iterable example in the docs --- doc/tests/iterable.rst | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/doc/tests/iterable.rst b/doc/tests/iterable.rst index ed0c2b7..89a172f 100644 --- a/doc/tests/iterable.rst +++ b/doc/tests/iterable.rst @@ -11,6 +11,9 @@ {# evaluates to true if the foo variable is iterable #} {% if users is iterable %} {% for user in users %} - - {{ user }} + Hello {{ user }}! {% endfor %} + {% else %} + {# users is probably a string #} + Hello {{ users }}! {% endif %} -- 1.7.2.5