Edit this topic

Markup view engine

: shell

: view-engine

: markup-view-engine

: /modules/core/tokens/services/markup-view-engine.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/tokens/services/markup-view-engine.js

class: MarkupViewEngine

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.

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.