template

converts string to templating function

function template(string template);
templatestringtemplate string
functiontemplating function

Example

var line = webix.template("Some #name# code");
var text = line({ name:"Webix" });

Details

While this method is rarely used directly, the same templating logic is used during configuration of data components look.

See also
Back to top