@qiwi/uniconfig-plugin-dot
v3.5.6
Published
Uniconfig doT template plugin
Downloads
75
Readme
@qiwi/uniconfig-plugin-dot
Uniconfig doT template plugin.
Install
npm i @qiwi/uniconfig-plugin-dot
yarn add @qiwi/uniconfig-plugin-dot
Usage
import uniconfig, {rollupPlugin} from '@qiwi/uniconfig-core'
import uniconfigPluginDot from '@qiwi/uniconfig-plugin-dot'
rollupPlugin(uniconfigPluginDot)
const config = uniconfig({
data: {
template: '{{=it.foo}}-bar-{{=it.baz}}',
data: {
foo: 'FOO',
baz: 'BAZ'
}
},
mode: 'sync',
pipeline: 'dot'
})
config.get() // 'FOO-bar-BAZ'