@buxlabs/ejs-engine-loader
v0.1.0
Published
ejs engine loader for webpack
Downloads
5
Readme
ejs-engine-loader
ejs engine loader for webpack
Embedded js engine loader for webpack. Uses @buxlabs/ejs-engine engine to compile templates into standalone functions.
If you're looking for a loader which uses lodash, try ejs-loader
If you're looking for a loader which uses EJS templating engine, try ejs-compiled-loader
Installation
npm install @buxlabs/ejs-engine-loader
Usage
const escape = require('escape-html') // or any other escape method
const template = require('./file.ejs') // returns a compiled function
template(data, escape) // pass the data and an escape method
Changelog
- 0.1.0 - Initial release
License
MIT