-
Notifications
You must be signed in to change notification settings - Fork 58
How to Use Parse? #41
Copy link
Copy link
Open
Description
$.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. (test.html:103)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at A (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels