Permalink
Browse files

Updated Template docs to include using backslash to escape

  • Loading branch information...
1 parent e509fb5 commit 7381cb46a3541e71d96f86770bb263d7e4e8ff78 @howardgrigg howardgrigg committed Sep 18, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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

0 comments on commit 7381cb4

Please sign in to comment.