0.3.2 • Published 6 years ago
@bundles/bundles-ejs v0.3.2
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
| Node | CLI | ES Module | Browser | UMD |
|---|---|---|---|---|
| ✓ | ✓ | x | x | x |
Install
npm install @bundles/core @bundles/bundles-ejs -DUsage
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.filenameis automatically set by the bundler.- If
options.contextis undefined, the bunder will automatically usefile.dataas the context. This allows you to usethisin your template data. For example:<%= this.name %>.