Haml processes options on a per-Engine basis, so yes, there is in theory a way to do this. In practice, it's going to require some monkey-patching. You'll need to dig around in the Rails template-handling mechanisms, as well as in lib/haml/template/plugin.rb.
If you can come up with a nice way to handle this, I'm sure both Rails and Haml would appreciate a patch. On Sat, Jul 18, 2009 at 2:24 AM, RobL <[email protected]> wrote: > > Hi there, > > I'd like to test HTML5 with HAML but only on a single controller / > namespace within my Rails app. Is there a way to only turn this on > when you want it. I suppose I could use HAML in my namespace and erb > outside as its only for testing on an existing site but it feels a bit > dirty to use different templates languages in the same project. > > Cheers > > RobL > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
