Go to file
2014-12-15 16:47:57 +01:00
.npmignore Initial commit. 2014-12-15 15:48:11 +01:00
index.js Added support for passing template options from webpack. 2014-12-15 16:47:57 +01:00
LICENSE Initial commit. 2014-12-15 15:48:11 +01:00
package.json Added support for passing template options from webpack. 2014-12-15 16:47:57 +01:00
README.md Changed to lodash. 2014-12-15 16:00:49 +01:00

Lodash template for webpack

Lodash template loader for webpack. Uses _.template function to compile templates.

Installation

npm install tpl-loader

Usage

Documentation: Using loaders

var template = require("tpl!./file.html");
// => 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)