Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 477 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 477 Bytes

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)