Module: delite/handlebars

delite/handlebars

Plugin that loads a handlebars template from a specified MID and returns a function to generate DOM corresponding to that template.

When that function is run, it returns another function, meant to be run when the widget properties change. The returned function will update the DOM corresponding to the widget property changes.

Both functions are meant to be run in the context of the widget, so that properties are available through this.

Template has a format like:

Usage is typically like:

define([..., "delite/handlebars!./templates/MyTemplate.html"], function(..., template){
    ...
    template: template,
    ...
});
Show inherited