Haml: !!! Strict => <!DOCTYPE html>

Created on 8 Jul 2010  路  3Comments  路  Source: haml/haml

!!! Strict is returning HTML 5 doctype.

All 3 comments

I assume you're using Rails 3? If so, this isn't a bug. Rails 3 defaults to HTML5 output, and so Haml running under Rails 3 defaults to :format => :html5, which causes this.

I'm experiencing the same bug in sinatra

!!! Strict still outputs to the html doctype. actually changing the doctype to anything other than html 5 does not seem to modify it.

Do you have the :format option set to :html5? You can check by adding = haml_buffer.options[:format] to your template.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dparis picture dparis  路  16Comments

Arcovion picture Arcovion  路  11Comments

ChristianPeters picture ChristianPeters  路  12Comments

kamen-hursev picture kamen-hursev  路  6Comments

modsognir picture modsognir  路  6Comments