broccoli-jet
v0.0.6
Published
An elementary templating system for JSON files
Downloads
1
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
{
"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"
}