mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #801 from howardgrigg/patch-2
Updated Template docs to include using backslash to escape
This commit is contained in:
commit
069dbfa69a
@ -87,6 +87,12 @@ Or when having a `$` sign in front of the variable
|
||||
$$Foo // returns ""
|
||||
${$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
|
||||
|
||||
Within SilverStripe templates we have the ability to include other templates from the Includes directory using the SS
|
||||
|
Loading…
Reference in New Issue
Block a user