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.
- Host: GitHub
- URL: https://github.com/brikcss/stakcss-bundler-ejs
- Owner: brikcss
- Created: 2018-03-28T04:24:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T20:43:38.000Z (over 6 years ago)
- Last Synced: 2025-03-15T05:18:04.328Z (3 months ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).
## 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._