ready-made doctype declarations
Brought to you by:
artyom-beilis
Since much of the generated content in CppCMS is html, could the framework include methods or constants to output the doctype declarations and the xmlns attribute from xhtml 1.0 ?
Something like
getDoctype("html", "4.01", "strict") getDoctype("xhtml", "1.0") getDoctype("xhtml", "1.0", "transitional") getXmlNs('xhtml') // "http://www.w3.org/1999/xhtml" getXmlDecl(encoding, ver) // <?xml ver="1.0" encoding="UTF-8">
Anonymous