ejs-webpack-compile-loader

1.0.1 • Public • Published

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 -%>

🗎 Documentation

Documentation: Using loaders

EJS Options

Package Sidebar

Install

npm i ejs-webpack-compile-loader

Weekly Downloads

4

Version

1.0.1

License

CC0

Unpacked Size

8.12 kB

Total Files

4

Last publish

Collaborators

  • pixelsquared