Open jhindle opened 14 years ago
I was thinking this as well, but you can just do this in your layout:
<!DOCTYPE html>
%html
%head
...
HAML's :format option also effects how self-closing tags are formatted.
XHTML requires an ending slash:
<img src="foo.jpg" alt="bar" />
HTML4 and HTML 5 do not:
<img src="foo.jpg" alt="bar">
You're right! I hadn't even considered closing tags. I second the idea of the :format option for HAML.
Is there currently a way to set the ':format' option for HAML to change the doctype?
Like this: http://haml-lang.com/docs/yardoc/HAML_REFERENCE.md.html#options
This would be good so the doctype could be changed to HTML4 or HTML5