ejs-template-loader

ejs template loader

Usage no npm install needed!

<script type="module">
  import ejsTemplateLoader from 'https://cdn.skypack.dev/ejs-template-loader';
</script>

README

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]