Hi!

This is an unsolicited patch to allow undisturbed javascript in your
Haml (similar to the :plain filter with the sugar from the filter
mentioned here: http://groups.google.com/group/haml/msg/2d890cf1ede761ea
) *and* allow you to access the view variables using the familiar ==
(double quoted string) syntax for ruby interpolation (and this is not
similar to any other filter):

:inline_javascript
  function use_instance() {
    alert('Hello ' + '[EMAIL PROTECTED]')
  }

Find the git patch here:

http://pastie.org/156177

For any that might be interested right now, the monkey patch for Rails
is described here (for gem version 1.8.0) :

http://groups.google.com/group/rubyjax/msg/d5a83147349bff1f

Thanks for Haml!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to