@brikcss/stakcss-bundler-ejs
v0.0.1
Published
Stakcss bundler which compiles ejs.
Downloads
3
Maintainers
Readme
Stakcss EJS Bundler
Install
npm install @brikcss/stakcss @brikcss/stakcss-bundler-ejs --save-dev
Usage
Add the bundler to Stakcss and configure like any other bundler:
- Node:
stak({ bundlers: ['@brikcss/stakcss-bundler-ejs'] }); // or with options and data: stak({ bundlers: [{ run: '@brikcss/stakcss-bundler-ejs', options: {}, data: {} }] });
- CLI:
stak ... --bundlers=@brikcss/stakcss-bundler-ejs
Bundler Configuration
Note: From a CLI, you must use a config file (--config=<path>
) to configure the bundler.
bundler.options
{Object} Options passed to EJS. The default options are:{ _with: false, localsName: 'data' }
.bundler.data
{Object | String} Data to compile EJS content with. Can be actual data or a String, which is treated as a path to a data file which can be "required" into node.
See Stakcss for more on using Stakcss bundlers.