Updated README.

This commit is contained in:
Dmitriy Kubyshkin 2014-12-15 15:52:26 +01:00
parent 55196028f5
commit d2767c4bdd

View File

@ -1,17 +1,17 @@
# ejs-loader for webpack # Underscore template for webpack
EJS (Underscore/LoDash Templates) loader for [webpack](http://webpack.github.io/). Uses [lodash template](http://lodash.com/docs#template) function to compile templates. Underscore template loader for [webpack](http://webpack.github.io/). Uses underscore template function to compile templates.
## Installation ## Installation
`npm install ejs-loader` `npm install tpl-loader`
## Usage ## Usage
[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("ejs!./file.ejs"); var template = require("tpl!./file.ejs");
// => 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