Edit this topic

Code view engine

: shell

: code-view-engine

: 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


A view engine where templates are JavaScript functions.

Kind: global variable

codeViewEngine.load(templatePath, done) ⇒ function

Loads the rendering function from the provided path.

Kind: static method of codeViewEngine
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.