0.0.6 • Published 9 years ago

broccoli-jet v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

  {
    "0001": "{#Key#}hello{#Key#}"
  }

with the following context

  Key: "<span>{%outlet%}</span>"

will result in

  {
    "0001": "<span>hello</span>"
  }

Inline statement

Following json file

  {
    "0001": "Hello {%Key%}"
  }

with the following context

  Key: "Tom"

will result in

  {
    "0001": "Hello Tom"
  }