ejs-template-loader
v2.0.0
Published
ejs template loader
Readme
Install
npm install ejs-template-loaderUsage
Documentation: Using loaders[http://webpack.github.io/docs/using-loaders.html]
use ejs[https://github.com/mde/ejs] template.
options see html-minifier[https://github.com/kangax/html-minifier] and ejs[https://github.com/mde/ejs].
//config
{
test: /\.html$/,
loader: "ejs-template-loader/*[options]*/"
}
//requrie
var template = require("tpl.html");
//render
var html = template(data);
LICENSE
MIT [http://www.opensource.org/licenses/mit-license.php]
