make-document-html
Makes final document html from named parameters.
Usage
makeHTML =
See example below for most supported options. Also supported: jsPaths
, cssPaths
, cssCode
, body
(raw html).
webApp
adds a bunch of tags at once. They may become configurable one-by-one later.
Doctype is not configurable. It's HTML5.
Examples
Empty input
Realistic input
makeHTML manifestURL: "/appcache.manifest" title: "Stellarpad" webApp: true cssPath: "/latest.css" jsPath: "/latest.js" favIcon: "/favicon.ico" appleTouchIconsPrecomposed: "72x72": "/Icon-72.png" "144x144": "/Icon-722x.png" "57x57": "/Icon.png" "114x114": "/Icon2x.png" jsCode: "$(function(){Stellarpad.initialize()})"
Stellarpad
Credits
The initial structure of this module was generated by Jumpstart, using the Jumpstart Black Coffee template.
License
make-document-html is released under the MIT License.
Copyright (c) 2013 Meryn Stol