Fixed minor syntax issues in templates.rst

This commit is contained in:
Javier Eguiluz
2016-04-17 19:46:21 +02:00
parent f0a4fa6784
commit 4788e53d04
+2 -2
View File
@@ -821,7 +821,7 @@ String Interpolation
.. versionadded:: 1.5
String interpolation was added in Twig 1.5.
String interpolation (`#{expression}`) allows any valid expression to appear
String interpolation (``#{expression}``) allows any valid expression to appear
within a *double-quoted string*. The result of evaluating that expression is
inserted into the string:
@@ -869,7 +869,7 @@ leading and or trailing whitespace:
{# output 'no spaces' #}
The above sample shows the default whitespace control modifier, and how you can
use it to remove whitespace around tags. Trimming space will consume all whitespace
use it to remove whitespace around tags. Trimming space will consume all whitespace
for that side of the tag. It is possible to use whitespace trimming on one side
of a tag: