1.0.0 • Published 9 years ago
ejs-tmpl-loader v1.0.0
ejs-tmpl-loader for webpack
EJS loader for webpack. Uses ejs function to compile templates.
To use EJS by tj use 1.x branch and 1.x.x versions.
Installation
npm install ejs-tmpl-loader
Usage
var template = require("ejs-tmpl!./file.ejs");
// => returns the template function compiled with ejs templating engine.
// And then use it somewhere in your code
template(data) // Pass object with data
License
1.0.0
9 years ago