次のコード(*)は機能しますが、使用する代わりに次のコードを使用したいと思います。
$(this.el).html(Mustache.render("<h2>{{title}}</h2>", view));
私がしたいのは:
$(this.el).html(Mustache.render("somePath/myFile.html", view));
どうすればいいですか?
(*)
render: function ()
{
var view = {
response: this.model.title
};
$(this.el).html(Mustache.render("<h2>{{{title}}}</h2>", view)); // it works
$(this.el).html(Mustache.render("myFile.html", view)); // it does not work
},