stache-loader

0.1.0 • Public • Published

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'}));
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i stache-loader

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • vladikoff