jquery-Mustache icon indicating copy to clipboard operation
jquery-Mustache copied to clipboard

How to Use Parse?

Open GitHubDelphi opened this issue 8 years ago • 0 comments
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. (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.

GitHubDelphi avatar Jan 05 '17 19:01 GitHubDelphi