underscore-template-loader
A Underscore template loader for Webpack
###Usage
**Installation**
```bash
$ npm install underscore-template-loader
```
**Add loader**
```javascript
module.exports = {
//...
loaders: [
//...
{ test: /\.html/, loader: "underscore-template-loader" }
]
};
```
**Set underscore template settings**
```javascript
module.exports = {
//...
loaders: [
//...
{
test: /\.html/,
loader: "underscore-template-loader",
query: {
interpolate : '\\{\\[(.+?)\\]\\}',
evaluate: '\\{%([\\s\\S]+?)%\\}',
escape : '\\{\\{(.+?)\\}\\}'
}
}
]
};
```
**Loading templates**
<p>Hello <%=name%></p>
var compiled = require('./hello.html');
return compiled({name: "world"});
**Include tag**
<p>Hello, </p>
<em>how are you?</em>
###License
Released under the MIT license.