Awesome
ejs-compiled-loader for webpack
EJS loader for webpack. Uses ejs function to compile templates.
Installation
npm install ejs-compiled-loader
Usage
var template = require("ejs-compiled!./file.ejs");
// => returns the template function compiled with ejs templating engine.
// And then use it somewhere in your code
template(data) // Pass object with data
// Child Templates
// path is relative to where webpack is being run
<%- include templates/child -%>