From 2c975b5f2584b04198d2544e4bb3bcacfc166709 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 8 Oct 2012 15:57:16 +0200 Subject: [PATCH] tweaked Twig introduction --- book/templating.rst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/book/templating.rst b/book/templating.rst index 363f926b9b9..65529ed46d5 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -127,17 +127,18 @@ Throughout this chapter, template examples will be shown in both Twig and PHP. not program logic. The more you use Twig, the more you'll appreciate and benefit from this distinction. And of course, you'll be loved by web designers everywhere. - - Twig can also do things that PHP can't, such as whitespace control, sandboxing, - and the inclusion of custom functions and filters that only affect templates. - Twig contains little features that make writing templates easier and - more concise. Take the following example, which combines a loop with - a logical ``if`` statement: - + + Twig can also do things that PHP can't, such as whitespace control, + sandboxing, automatic and contextual output escaping, and the inclusion of + custom functions and filters that only affect templates. Twig contains + little features that make writing templates easier and more concise. Take + the following example, which combines a loop with a logical ``if`` + statement: + .. code-block:: html+jinja - +