Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 598 Bytes

File metadata and controls

30 lines (25 loc) · 598 Bytes

@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'