UNPKG

dynamictemplate

Version:
45 lines (40 loc) 1.61 kB
(function() { var doctype; doctype = { 'xml': function(_arg) { var encoding; encoding = _arg.encoding; return "<?xml version=\"1.0\" encoding=\"" + encoding + "\" ?>"; }, 'html': function() { return "<!DOCTYPE html>"; }, 'html5': function() { return "" + (doctype.html()); }, 'mobile': function() { return '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD ' + 'XHTML Mobile 1.2//EN" ' + '"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'; }, 'html-ce': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML 1.0 Transitional//EN" ' + '"ce-html-1.0-transitional.dtd">'; }, 'strict': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML 1.0 Strict//EN" ' + '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'; }, 'xhtml1.1': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML 1.1//EN" ' + '"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; }, 'xhtml': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML Basic 1.1//EN" ' + '"http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">'; }, 'frameset': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML 1.0 Frameset//EN" ' + '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'; }, 'transitional': function() { return '<!DOCTYPE html PUBLIC ' + '"-//W3C//DTD XHTML 1.0 Transitional//EN" ' + '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; } }; module.exports = { doctype: doctype }; }).call(this);