0.3.2 • Published 5 years ago

@bundles/bundles-ejs v0.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Bundles EJS Bundler

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

Environment support

NodeCLIES ModuleBrowserUMD
xxx

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