diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index fd1a59861..4560e0f1a 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -406,6 +406,13 @@ filter: The above snippet of code would print all numbers from 0 to 9 (the high value is never part of the generated array). +It can be also useful with letters: + + [twig] + {% for letter in 'a'|range('z') %} + * {{ letter }} + {% endfor %} + Inside of a `for` loop block you can access some special variables: | Variable | Description