Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

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

Keywords

none

install

npm i stache-loader

Downloadsweekly downloads

1

version

0.1.0

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability