diff --git a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml index f2d5cf89..be3924fb 100644 --- a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml +++ b/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml @@ -3,10 +3,11 @@ Embedding Vars in Double Quotes - Smarty will recognize assigned variables embedded in double quotes so long - as the variables contain only numbers, letters, underscores and brackets - []. With any other characters (period, object reference, etc.) the variable - must be surrounded by backticks. + Smarty will recognize assigned variables embedded in double quotes so long as + the variables contain only numbers, letters, underscores and brackets []. + With any other characters (period, object reference, etc.) the variable must + be surrounded by backticks. You cannot embed modifiers, they must always be + applied outside of quotes. embedded quotes syntax @@ -19,6 +20,7 @@ SYNTAX EXAMPLES: {func var="test $foo[bar] test"} <-- sees $foo[bar] {func var="test $foo.bar test"} <-- sees $foo (not $foo.bar) {func var="test `$foo.bar` test"} <-- sees $foo.bar +{func var="test `$foo.bar` test"|escape} <-- modifiers outside quotes! PRACTICAL EXAMPLES: {include file="subdir/$tpl_name.tpl"} <-- will replace $tpl_name with value