The Haml RDoc documentation (http://haml.hamptoncatlin.com/docs/rdoc/ classes/Haml.html) incorrectly states that the way to get Haml to ouput HTML5 under Merb is to set Merb::Config[:haml][:format] = :html5. In fact, the merb-haml gem looks for Merb::Plugins.config[:haml], and takes its options from there. So to get HTML5 output you need to set Merb::Plugins.config[:haml] = :html5 in your init.rb file in Merb.
This was bugging me for a while, and I've only just figured it out. Hopefully someone else will find it useful. And maybe the Docs could be updated. What makes it doubly weird is that there's a merb-haml patch (http://merb.lighthouseapp.com/projects/7435-merb-more/tickets/ 61) which was meant to reverse this behaviour. But anyway, merb-haml 0.9.9 is looking in Merb::Plugins rather than Merb::Config. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
