From 7f2c743af2aa2564d74a75b8fdb46d72d3092f43 Mon Sep 17 00:00:00 2001 From: fabien Date: Tue, 15 Dec 2009 07:35:23 +0000 Subject: [PATCH] fixed indentation in the docs git-svn-id: http://svn.twig-project.org/trunk@189 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- doc/03-Twig-for-Developers.markdown | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/03-Twig-for-Developers.markdown b/doc/03-Twig-for-Developers.markdown index cca6350..6f6ae88 100644 --- a/doc/03-Twig-for-Developers.markdown +++ b/doc/03-Twig-for-Developers.markdown @@ -315,30 +315,30 @@ Twig 0.9.5 and above): * Literals (integers, booleans, arrays, ...) used in the template directly as variables or filter arguments are never automatically escaped: - [twig] - {{ "Twig
" }} {# won't be escaped #} + [twig] + {{ "Twig
" }} {# won't be escaped #} - {% set text as "Twig
" %} - {{ text }} {# will be escaped #} + {% set text as "Twig
" %} + {{ text }} {# will be escaped #} * Escaping is applied before any other filter is applied (the reasoning behind this is that filter transformations should be safe, as the filtered value and all its arguments are escaped): - [twig] - {{ var|nl2br }} {# is equivalent to {{ var|escape|nl2br }} #} + [twig] + {{ var|nl2br }} {# is equivalent to {{ var|escape|nl2br }} #} * The `safe` filter can be used anywhere in the filter chain: - [twig] - {{ var|upper|nl2br|safe }} {# is equivalent to {{ var|safe|upper|nl2br }} #} + [twig] + {{ var|upper|nl2br|safe }} {# is equivalent to {{ var|safe|upper|nl2br }} #} * Automatic escaping is applied to filter arguments, except for literals: - [twig] - {{ var|foo("bar") }} {# "bar" won't be escaped #} - {{ var|foo(bar) }} {# bar will be escaped #} - {{ var|foo(bar|safe) }} {# bar won't be escaped #} + [twig] + {{ var|foo("bar") }} {# "bar" won't be escaped #} + {{ var|foo(bar) }} {# bar will be escaped #} + {{ var|foo(bar|safe) }} {# bar won't be escaped #} * Automatic escaping is not applied if one of the filter in the chain has the `is_escaper` option set to `true` (this is the case for the built-in -- 1.7.2.5