.npmignore | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
Underscore template for webpack
Underscore template loader for webpack. Uses underscore template function to compile templates.
Installation
npm install tpl-loader
Usage
var template = require("tpl!./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