An open API service indexing awesome lists of open source software.

https://github.com/brikcss/stakcss-bundler-ejs

Stakcss bundler that compiles EJS.
https://github.com/brikcss/stakcss-bundler-ejs

Last synced: 2 months ago
JSON representation

Stakcss bundler that compiles EJS.

Awesome Lists containing this project

README

        

# Stakcss EJS Bundler

> Bundler for [Stakcss](https://github.com/brikcss/stakcss) that compiles [EJS](https://github.com/mde/ejs).




NPM version



NPM downloads per month



Travis branch



NPM version



Coverage Status



Commitizen friendly



semantic release



code style: prettier



## Install

```sh
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:
```sh
stak ... --bundlers=@brikcss/stakcss-bundler-ejs
```

### Bundler Configuration

_Note: From a CLI, you must use a config file (`--config=`)_ to configure the bundler.

- **`bundler.options`** _{Object}_ Options passed to [EJS](https://github.com/mde/ejs#options). 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](https://github.com/brikcss/stakcss) for more on using Stakcss bundlers._