From 75c1349d7e53c4c859edf95b69ee3eef8594d887 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 20 Dec 2004 19:52:32 +0000 Subject: [PATCH] update quote docs to mention modifiers must be outside quotes --- .../language-basic-syntax/language-syntax-quotes.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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