I am going with the approach of using a variable called $DollarSign that 
returns "$" for 
now. http://www.silverstripe.org/template-questions/show/6974.

On Monday, 24 February 2014 10:21:14 UTC+13, Bob M Brown wrote:
>
> Hi All,
>
> I'm maintaining a Silverstripe 2.4.5 site and am putting in some knockout 
> based markup into one of the templates. In Silverstripe any word that 
> starts with a $ is interpreted as a server-side value and this is getting 
> in the way of me using some of the knockout bindings like $parent etc.
>
> The v3.0 SS docs say you can escape a $ by using \$varname for example but 
> it appears this is not supported in v2.4 as when I do this I simply get "\" 
> in the output and the $varname bit is absent. It's not mentioned in the 
> v2.4 docs at 
> http://doc.silverstripe.org/framework/en/2.4/reference/advanced-templates 
>
> Ideally I'd like to wrap a chunk of the template inside something that 
> marks the content as literal.
>
> So far I've managed to avoid this by not using a $ but now I can't avoid 
> it.
>
> Any suggestions to make this work on v2.4 are welcome.
>
> Cheers,
>
> - Bob -
>
>

-- 
-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to nzphpug@googlegroups.com
To unsubscribe, send email to
nzphpug+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups "NZ 
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nzphpug+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to