1.0.0 • Published 8 years ago

mustache-ractive-loader v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

mustache ractive loader for webpack

Installation

npm install mustache-ractive-loader

Usage

webpack.config.js

module: {
	loaders: [
		{
			test: /\.mustache$/,
			loader: 'mustache-ractive-loader',
		}
	]
}

index.js

import Ractive from 'ractive'
import tpl from './tpl/index.mustache'

const ractive = new Ractive({
    el: '#app',
    template: tpl,
});

License

MIT (http://www.opensource.org/licenses/mit-license.php)