# broccoli-jet

> An elementary templating system for JSON files

Latest version **0.0.6** (published 2015-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-jet
pnpm add broccoli-jet
yarn add broccoli-jet
bun add broccoli-jet
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2015-03-21 |
| First published | 2015-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tom De Smet |
| Maintainers | tdesmet |
| Keywords | broccoli-plugin |

## Links

- npm: https://www.npmjs.com/package/broccoli-jet
- Repository: https://github.com/Firstserve/broccoli-jet
- Issues: https://github.com/Firstserve/broccoli-jet
- npm.io page: https://npm.io/package/broccoli-jet

## Dependencies (5)

- [rsvp](https://npm.io/package/rsvp.md) ^3.0.17
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [walk-sync](https://npm.io/package/walk-sync.md) ^0.1.3
- [broccoli-writer](https://npm.io/package/broccoli-writer.md) ^0.1.1
- [broccoli-kitchen-sink-helpers](https://npm.io/package/broccoli-kitchen-sink-helpers.md) ^0.2.6

## Recent versions

- 0.0.6 (latest) — 2015-03-21
- 0.0.5 — 2015-03-20
- 0.0.4 — 2015-03-20
- 0.0.3 — 2015-03-20
- 0.0.1 — 2015-03-20

## README

# broccoli-jet

JET (JSON elementary templating)

This plugin ads basic templating support to a json structure.

templates support basic block and inline content replacement

# usage

## Block statement

Following json file

```JSON
  {
    "0001": "{#Key#}hello{#Key#}"
  }
```

with the following context

```
  Key: "<span>{%outlet%}</span>"
```

will result in

```JSON
  {
    "0001": "<span>hello</span>"
  }
```


## Inline statement

Following json file

```JSON
  {
    "0001": "Hello {%Key%}"
  }
```

with the following context

```
  Key: "Tom"
```

will result in

```JSON
  {
    "0001": "Hello Tom"
  }
```

---
_Source: https://npm.io/package/broccoli-jet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
