Updated Template docs to include using backslash to escape

This commit is contained in:
Howard Grigg 2012-09-18 22:35:46 +10:00
parent e509fb501d
commit 7381cb46a3

View File

@ -87,6 +87,12 @@ Or when having a `$` sign in front of the variable
$$Foo // returns "" $$Foo // returns ""
${$Foo} // returns "$3" ${$Foo} // returns "$3"
You can also use a backslash to escape the name of the variable, such as:
:::ss
$Foo // returns "3"
\$Foo // returns "$Foo"
## Includes ## Includes
Within SilverStripe templates we have the ability to include other templates from the Includes directory using the SS Within SilverStripe templates we have the ability to include other templates from the Includes directory using the SS