2010/8/5 mtin79 <[email protected]>:
> hey out there!
> i am trying to figure out how to customize a javascript call inside my
> haml template.
> the problem with ruby interpolation within a javascript filter is that
> the interpolated ruby is allways surrounded by quotes.
> how can i get a value written inside a javascript filter without it
> being wrapped with quotes?
>
> eg.:
>
> - string = " ' test ' "
> :javascript
> #{string}
>
> renders
> <script ....>
> " ' test ' " // and not just ' test '
> </script>
>
> is there a way to get rid of the outer quotes?
> thanks for help!
> martin
Haml/Sass 3.0.4 (Classy Cassidy) !!!
- string = " ' test ' "
:javascript
#{string}
======================== renders
<script type='text/javascript'>
//<![CDATA[
' test '
//]]>
</script>
--
Kit
--
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.