Omni Yaml JSON
A plugin that allows you to use json
config blocks in Omni-Directional Documents.
Installation
npm install @smarterlabs/omni-plugin-json --save
or
yarn add @smarterlabs/omni-plugin-json
Usage
import Omni from '@smarterlabs/omni'
import omniJSON from '@smarterlabs/omni-plugin-json'
const omni = new Omni({
input: `src`,
output: `dist`,
plugins: [
omniJSON(),
],
})
omni.watch()
Example
```json config
{
"interpolate": {
"_scope_": "scope-name"
}
}
```