mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
Fixed minor syntax issues in templates.rst
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user