How do you change doctypes in HAML for one particular view layout? All other pages for the system need to remain HTML5, however I’m needing a particular type for one special exception.
On Rails 3.1.x I’ve attempted several different ways to change my doctype from 5 to 4.01 to no avail. I’ve looked at the following for guidance: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#doctype_
It seems as though I cannot force the :format option within a template.
How about the following workaround?
Set somewhere in controller
@use_4_01and you’ll get this old doctype.