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 - -- Bob Brown, [L|W]AMP Web Developer [email protected], http://www.guru.net.nz -- -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
