Doctype

A Doctype declaration is used to specify the version of HTML that the document is using. The Doctype declaration is not an HTML tag, and Haml and Slim each get their own template syntax for it.

GoHT only supports the HTML5 doctype shortcut in Haml and Slim templates. EGO templates use normal HTML, so write <!DOCTYPE html> directly when an EGO template needs a doctype.

Haml

!!!

renders as:

<!DOCTYPE html>

Another difference between GoHT and Haml is that GoHT does not require the doctype declaration to be used in the first column. Whether you choose to use the doctype declaration in the first column or indented in some is up to you. It still cannot be indented under another element though.

Slim

doctype

renders as:

<!DOCTYPE html>

EGO

<!DOCTYPE html>
<html>
</html>