jquery-Mustache
jquery-Mustache copied to clipboard
How to Use Parse?
trafficstars
$.Mustache.load('./templates/template.htm') .done(function () { var customTags = [ '@@', '@@)' ]; $.Mustache.parse(this, customTags); // <=============== fails console.log($.Mustache);
$.Mustache.tags = customTags;
// Subsequent parse() and render() calls will use customTags
$.Mustache.options.warnOnMissingTemplates = true;
$.Mustache.parse(template); // optional, speeds up future uses <============ fails
$('body').mustache('mypage', view);
});
Uncaught TypeError: $.Mustache.parse is not a function
at Object.
Thank you.