ejs-template-loader

2.0.0 • Public • Published

Install

npm install ejs-template-loader

Usage

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]

Readme

Keywords

Package Sidebar

Install

npm i ejs-template-loader

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • longjiarun