There's no global way at the moment. You can manually escape each of the
interpolations, though, as so:
:javascript
var template = "This is a template. \#{some js variable}";
This obviously isn't ideal; in the future, I'd like to support something
like ":javascript:no-interpolation" for this, but at the moment neither
filter composition nor the "no-interpolation" filter exists.
On Wed, Sep 9, 2009 at 4:29 PM, Andrew Selder <[email protected]> wrote:
>
> Is it possible to turn off universal interpolation.
>
> We have a JS template library that also uses #{} for string
> interpolation.
>
> So we have things.
>
> :javascript
> var template = "This is a template. #{some js variable}";
>
> Obviously with universal interpolation, Haml tries to evaluate "some
> js variable" and fails miserably.
>
> Thanks.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---