Edit this topic

Code view engine

: shell

: view-engine

: code-view-engine

: /modules/core/ui/services/code-view-engine.js

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

codeViewEngine

A view engine where templates are JavaScript functions.

codeViewEngine.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.