From bd26d1fa8c5f6a769e74c0c9949e6a0cec8a3997 Mon Sep 17 00:00:00 2001 From: asandjivy Date: Fri, 12 Aug 2016 11:38:56 +0200 Subject: [PATCH 1/2] Update templating.rst Fixed bad div tags count --- templating.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templating.rst b/templating.rst index 95142d9f8c8..8db99e3252b 100644 --- a/templating.rst +++ b/templating.rst @@ -103,7 +103,7 @@ by default. You can even add your own *custom* filters, functions (and more) via a :doc:`Twig Extension `. Twig code will look similar to PHP code, with subtle, nice differences. The following -example uses a standard ``for`` tag and the ``cycle`` function to print ten div tags, +example uses a standard ``for`` tag and the ``cycle`` function to print eleven (0 to 10) div tags, with alternating ``odd``, ``even`` classes: .. code-block:: html+twig From b9a74e0811faf71c5018900fef7ef414a18bc8af Mon Sep 17 00:00:00 2001 From: asandjivy Date: Tue, 16 Aug 2016 10:00:34 +0200 Subject: [PATCH 2/2] Update templating.rst --- templating.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templating.rst b/templating.rst index 8db99e3252b..a2fc99ab108 100644 --- a/templating.rst +++ b/templating.rst @@ -103,12 +103,12 @@ by default. You can even add your own *custom* filters, functions (and more) via a :doc:`Twig Extension `. Twig code will look similar to PHP code, with subtle, nice differences. The following -example uses a standard ``for`` tag and the ``cycle`` function to print eleven (0 to 10) div tags, +example uses a standard ``for`` tag and the ``cycle`` function to print ten div tags, with alternating ``odd``, ``even`` classes: .. code-block:: html+twig - {% for i in 0..10 %} + {% for i in 1..10 %}