Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Use Parse? #41

Open
GitHubDelphi opened this issue Jan 5, 2017 · 0 comments
Open

How to Use Parse? #41

GitHubDelphi opened this issue Jan 5, 2017 · 0 comments

Comments

@GitHubDelphi
Copy link

$.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant