Cool - thanks for that. 100% Haml here I come! On Nov 4, 3:41 pm, "s.ross" <[EMAIL PROTECTED]> wrote: > On Nov 3, 2007, at 3:28 PM, Geoff Evason wrote: > > > The only parts that aren't haml are some custom > > embedded javascript that was just easier to do in rhtml. > > Sorry you didn't know about the inline javascript filters. You could > have been rhtml-free! There are two of these filters. I put mine in a > pastie--http://pastie.caboo.se/113852. Stick the code in lib/ > inline_javascript.rb. Stick this code at the end of your environment.rb: > > require 'inline_javascript' > > Haml::Template.options = { > :filters => { > 'inline_javascript' => Haml::Filters::InlineJavascript > } > > } > > Usage is: > > :inline_javascript > function show_blue_screen_of_death() { > // do stuff > } > %h1 your keen haml page > #content > other stuff
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
