I'm migrating old sites to Express/Jade having the "HTML 4.01 Strict" doctype. I want to keep this doctype for now.
How do I get this doctype in Express/Jade?
"doctype strict" only provides the XML type, not HTML.
Of course I can type the doctype manually, but this doesn't work because Jade will insert an extra "/" at the end of each HTML element in the rest of the document (as if the document was XML), which leads to validation errors.
Will give you:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I believe that is the closest you could get.
P.S.: If you're migrating, why not change, since you have to touch it anyway?
This recipe can be found in it's original form on Stack Over Flow.