@buxlabs/ejs-engine-loader

0.1.0 • Public • Published

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

Documentation: Using loaders

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

Package Sidebar

Install

npm i @buxlabs/ejs-engine-loader

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • buxlabs-dev
  • emilos