@bundles/bundles-ejs

0.3.2 • Public • Published

Bundles EJS Bundler

NPM version NPM downloads per month Travis branch Codacy code quality Codacy code coverage Coverage Status JavaScript Style Guide code style: prettier semantic release Commitizen friendly License Greenkeeper badge

This is a bundler plugin for Bundles. It uses ejs to compile Bundles input with the power of native JavaScript templating.

Environment support

Node CLI ES Module Browser UMD
x x x

Install

npm install @bundles/core @bundles/bundles-ejs -D

Usage

See configuring Bundles for how to configure Bundles and bundlers.

Configuration

All options in bundler.options are passed directly to EJS. Please note the following:

  • options.filename is automatically set by the bundler.
  • If options.context is undefined, the bunder will automatically use file.data as the context. This allows you to use this in your template data. For example: <%= this.name %>.

/@bundles/bundles-ejs/

    Package Sidebar

    Install

    npm i @bundles/bundles-ejs

    Weekly Downloads

    6

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    6.72 kB

    Total Files

    4

    Last publish

    Collaborators

    • thezimmee