Skip to content

yoshdog/emblem-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

emblem loader for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published