Skip to content

yetzt/ejs-loader-compiled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ejs-loader-compiled for webpack

Loads EJS for webpack and minifies ES6 with terser.

A drop-in replacement for the unmaintained ejs-compiled-loader

Installation

npm install ejs-loader-compiled

Usage

Documentation: Using loaders

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

License

UNLICENSE

About

A drop-in replacement for ejs-compiled-loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published