From 7bf7f54e8253539b5fa1a39ea19ae7734ed82b75 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 May 2011 08:14:47 +0200 Subject: [PATCH] tweaked docs --- doc/templates.rst | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/templates.rst b/doc/templates.rst index fe26b53..3f1ac94 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -545,14 +545,10 @@ The ``..`` operator can take any expression at both sides: * {{ letter }} {% endfor %} -If you need a step different from 1, you can use the ``range`` function -instead: +.. tip: -.. code-block:: jinja - - {% for i in range(0, 10, 2) %} - * {{ i }} - {% endfor %} + If you need a step different from 1, you can use the ``range`` function + instead. Inside of a ``for`` loop block you can access some special variables: -- 1.7.2.5