2.0.0 • Published 7 years ago
ejs-template-loader v2.0.0
Install
npm install ejs-template-loader
Usage
Documentation: Using loadershttp://webpack.github.io/docs/using-loaders.html
use ejshttps://github.com/mde/ejs template.
options see html-minifierhttps://github.com/kangax/html-minifier and ejshttps://github.com/mde/ejs.
//config
{
test: /\.html$/,
loader: "ejs-template-loader/*[options]*/"
}
//requrie
var template = require("tpl.html");
//render
var html = template(data);