Go to file
Dmitriy Kubyshkin 55196028f5 Initial commit.
2014-12-15 15:48:11 +01:00
.npmignore Initial commit. 2014-12-15 15:48:11 +01:00
index.js Initial commit. 2014-12-15 15:48:11 +01:00
LICENSE Initial commit. 2014-12-15 15:48:11 +01:00
package.json Initial commit. 2014-12-15 15:48:11 +01:00
README.md Initial commit. 2014-12-15 15:48:11 +01:00

ejs-loader for webpack

EJS (Underscore/LoDash Templates) loader for webpack. Uses lodash template function to compile templates.

Installation

npm install ejs-loader

Usage

Documentation: Using loaders

var template = require("ejs!./file.ejs");
// => returns the template function compiled with undesrcore (lodash) templating engine.

// And then use it somewhere in your code
template(data) // Pass object with data

License

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