Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladikoff/stache-loader
https://github.com/vladikoff/stache-loader
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vladikoff/stache-loader
- Owner: vladikoff
- License: mit
- Created: 2014-07-31T23:57:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-06T14:53:25.000Z (over 10 years ago)
- Last Synced: 2024-10-19T00:28:46.964Z (3 months ago)
- Language: JavaScript
- Size: 123 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stache-loader
Almost like https://github.com/jfparadis/requirejs-mustache but for [webpack](https://github.com/webpack/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'}));
});
});
```