Markup view engine
: shell
: markup-view-engine
: view-engine
: /modules/core/tokens/services/markup-view-engine.js
MarkupViewEngine
Kind: global class
new MarkupViewEngine(scope)
A view engine using the Token API, which uses Markup.js. See https://github.com/adammark/Markup.js/ for details about Markup.js.
| Param | Type |
|---|---|
| scope | object |
markupViewEngine.load(templatePath, done) ⇒ function
Loads the rendering function from the provided path.
Kind: instance method of MarkupViewEngine
Returns: function - The template function.
| Param | Type | Description |
|---|---|---|
| templatePath | string |
The path to the JavaScript file. |
| done | function |
The callback function to call when the template is loaded. |