There is no doctype defined for XHTML5; see 
http://www.whatwg.org/specs/web-apps/current-work/#writing-xhtml-documents. 
What doctype are you trying to use?

As for the XML header, the only reason I could imagine for it not being 
displayed is if you're rendering the templates in HTML mode.

Bill Turner wrote:
> Hi folks,
>
> I'm relatively new to HAML, but I'm really liking it (and SASS). I
> have a peculiar issue that I'm trying to work out for my sinatra app.
>
> I have the format set to html5, via:
>
> set :haml, { :format => :html5 }
>
> but is there a way to have the option for self-closing tags with HTML5
> along with the new HTML5 doctype? Even if I add the :autoclose to the
> set command, those tags (like link) don't self close.
>
> set :haml, { :format => :html5, :autoclose => ['meta', 'img', 'link',
> 'br', 'hr', 'input', 'area', 'param', 'col', 'base'] }
>
> Also, possibly related, on my .haml templates for XML files, the !!!
> no longer will give me an XML header, none of these work:
> !!!
> !!! XML
> !!! xml
>
> Any ideas for either of these?
> Many thanks!
> Bill
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to