Menu

#24 ready-made doctype declarations

Release 1.2
open
nobody
None
1
2013-08-09
2013-08-09
No

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">

Discussion

Anonymous
Anonymous

Add attachments
Cancel