Manages the saving and loading of template files.
Example
var TemplateIO = require('template-io.js');
// a generic Viewer constructor
function Viewer(opts) {
var myTemplateIO = TemplateIO(this);
}
Fires:
Listens to Events:
(require("template-io"))(viewer)
Creates the template IO module.
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Core |
The core viewer to which the module will attach. |
Methods
destroy()
Destroys the module.