@qiwi/uniconfig-plugin-dot
TypeScript icon, indicating that this package has built-in type declarations

3.5.6 • Public • Published

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

Package Sidebar

Install

npm i @qiwi/uniconfig-plugin-dot

Weekly Downloads

5

Version

3.5.6

License

MIT

Unpacked Size

6.99 kB

Total Files

9

Last publish

Collaborators

  • antongolub
  • qiwibot