We use HAML to create HTML5 and XML feeds so we switched HAML back to :xhtml.
Create this file: #{Rails.root}/config/initializers/haml.rb With this option: Haml::Template.options[:format] = :xhtml To create HTML5 templates use "!!! 5" declaration. To create feeds use "!!! xml". On Sep 8, 8:06 pm, Todd <t...@savagevenus.net> wrote: > Hi! > > I was trying out HAML today and everything works great except I can't > seem to change the doctype using "!!! Strict" (for example). It always > defaults to "<!DOCTYPE html>" no matter what I put. > > The rest of the code prints fine, however. And I can print out the > correct doctype using HAML from the command line, so I know it's > working. > > I've added haml to my gemfile so I know it works but I can't seem to > figure out why it's not setting the doctype. > > Thanks :) > Todd -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.