emblem loader for webpack
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

Emblem loader for webpack

Emblem (Emblem Templates) loader for webpack. Uses emblem's compile function to handlebars.js.

Installation

npm install emblem-loader

Usage

Documentation: Using loaders

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