1.0.1 • Published 8 years ago
ejs-webpack-compile-loader
Licence
CC0
Version
1.0.1
Deps
1
Size
8 kB
Vulns
0
Weekly
0
EJS Weppack Compile Loader
️ Installation
npm i -S ejs-webpack-compile-loader
Example
const template = require("./file.ejs");
// => returns the template function compiled with ejs templating engine.
// And then use it somewhere in your code
await template(data) // Pass object with data
// Child Templates
// path is relative to where webpack is being run
<%- include templates/child -%>