You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tpl-loader/README.md

27 lines
602 B

10 years ago
# Underscore template for webpack
10 years ago
10 years ago
Underscore template loader for [webpack](http://webpack.github.io/). Uses underscore template function to compile templates.
10 years ago
## Installation
10 years ago
`npm install tpl-loader`
10 years ago
## Usage
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
``` javascript
10 years ago
var template = require("tpl!./file.ejs");
10 years ago
// => 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)