Rails 3 emits HTML5, so Haml defaults to the :html5 format. If you want to use a different doctype, you need to set the :format option to :xhtml.
On Wed, Sep 8, 2010 at 7: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 <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- 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.