Skip to content

0.2.7 doctypes

Ivan S Glazunov edited this page Feb 20, 2015 · 2 revisions

Template.doctypes

{ [name: string]: Object > Doctype > Tag > Content > Prototype };

Hash with extensions of Doctype.

Contains

html
doctypes.html().render(console.log);
<!DOCTYPE html>
transitional
doctypes.transitional().render(console.log);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
strict
doctypes.strict().render(console.log);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
frameset
doctypes.frameset().render(console.log);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
basic
doctypes.basic().render(console.log);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
mobile
doctypes.mobile().render(console.log);
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
Clone this wiki locally