emblem-loader
v0.0.4
Published
Emblem loader for Webpack
Downloads
4
Maintainers
Readme
Emblem loader for webpack
Emblem (Emblem Templates) loader for webpack. Uses emblem's compile function to handlebars.js.
Installation
npm install emblem-loader
Usage
var template = require("emblem!./file.em");
// And then use it somewhere in your code
template(data) // Pass object with data
webpack config
You can also set it up the following in the webpack.config.js file
module.exports = {
module: {
loaders: [
{ test: /\.em$/, loader: emblem-loader }
]
},
resolve: {
extensions: ['.em']
}
}
License
MIT (http://www.opensource.org/licenses/mit-license.php)