0.0.1 • Published 6 years ago

@brikcss/stakcss-bundler-ejs v0.0.1

Weekly downloads
1
License
-
Repository
github
Last release
6 years ago

Stakcss EJS Bundler

Bundler for Stakcss that compiles EJS.

Install

npm install @brikcss/stakcss @brikcss/stakcss-bundler-ejs --save-dev

Usage

Add the bundler to Stakcss and configure like any other bundler:

  • Node:
    	```js
    	stak({
    		bundlers: ['@brikcss/stakcss-bundler-ejs']
    	});
    	// or with options and data:
    	stak({
    		bundlers: [{
    			run: '@brikcss/stakcss-bundler-ejs',
    			options: {},
    			data: {}
    		}]
    	});
    	```
  • CLI:
    	```bash
    	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.