0.1.0 • Published 10 years ago
stache-loader v0.1.0
stache-loader
Almost like https://github.com/jfparadis/requirejs-mustache but for webpack.
Helps webpack load AMD Mustache templates like so:
require(['backbone', 'stache!mytemplate'], function (Backbone, mytemplate) {
return Backbone.View.extend({
initialize: function(){
this.render();
},
render: function(){
this.$el.html(mytemplate({message: 'hello'}));
});
});
0.1.0
10 years ago