Skip to content

Commit

Permalink
Updated Template docs to include using backslash to escape
Browse files Browse the repository at this point in the history
  • Loading branch information
howardgrigg committed Sep 18, 2012
1 parent e509fb5 commit 7381cb4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/en/reference/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7381cb4

Please sign in to comment.