From 8f065b1f08edbfd99c130083ece1585408235014 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 28 Mar 2010 14:28:10 +0200 Subject: [PATCH] added a note about the without loop statement introduced in 0.9.5 (closes #34) --- doc/02-Twig-for-Template-Designers.markdown | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index afc4812..1c968e3 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -439,7 +439,9 @@ If you need a step different from 1, you can use the `range` filter instead: * {{ i }} {% endfor %} -Inside of a `for` loop block you can access some special variables: +Inside of a `for` loop block you can access some special variables (if you +don't need them, you can add `without loop` at the end of the `for` statement +for a small speed boost): | Variable | Description | --------------------- | ------------------------------------------------------------- -- 1.7.2.5