Changed to lodash.
This commit is contained in:
parent
d2767c4bdd
commit
f9c09917ae
@ -1,6 +1,6 @@
|
|||||||
# Underscore template for webpack
|
# Lodash template for webpack
|
||||||
|
|
||||||
Underscore template loader for [webpack](http://webpack.github.io/). Uses underscore template function to compile templates.
|
Lodash template loader for [webpack](http://webpack.github.io/). Uses `_.template` function to compile templates.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ Underscore template loader for [webpack](http://webpack.github.io/). Uses unders
|
|||||||
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
|
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
|
||||||
|
|
||||||
``` javascript
|
``` javascript
|
||||||
var template = require("tpl!./file.ejs");
|
var template = require("tpl!./file.html");
|
||||||
// => returns the template function compiled with undesrcore (lodash) templating engine.
|
// => returns the template function compiled with undesrcore (lodash) templating engine.
|
||||||
|
|
||||||
// And then use it somewhere in your code
|
// And then use it somewhere in your code
|
||||||
|
Loading…
Reference in New Issue
Block a user