Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #801 from howardgrigg/patch-2

Updated Template docs to include using backslash to escape
  • Loading branch information...
commit 069dbfa69a5a53d35ac6675704d3b3fccc435964 2 parents 4e7ed3f + 7381cb4
@chillu chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/en/reference/templates.md
View
6 docs/en/reference/templates.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.