Skip to content

How to Use Parse? #41

@GitHubDelphi

Description

@GitHubDelphi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions