class method Spah.DOM.Document.compileBlueprint
Spah.DOM.Document.compileBlueprint(docPath, templatePathMask, callback) → void
- docPath (String): The path to the HTML prototype document that will be prepared.
- templatePathMask (String, Array): A path mask or array of path masks from which Mustache template files will be read.
- callback (Function): The function to call once the document has been compiled. Receives the new Spah.DOM.Document instance as an argument.
(Server-side only) Creates a new HTML5 blueprint document to work with. Parses the file specified in the docPath
argument into a JSDOM environment, and then reads all Mustache files within the templatePathMask into the blueprint, inserting them into script tags at the bottom of the document body.