Question

In Hamlet, $doctype 5 generates <!DOCTYPE html>. The Yesod book says that "We have support for a number of different versions of a doctype", but does not document these. What other doctypes are supported and what is the syntax?

Was it helpful?

Solution

You can see the list in the source code:

https://github.com/yesodweb/shakespeare/blob/master/hamlet/Text/Hamlet/Parse.hs#L526

The theory behind this was that people were going to ask for all the additional doctypes that they needed, and once we had a comprehensive list, we'd put it in the docs. It seems that no one cared about anything but the HTML 5 doctype.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top