interpol8
Basic templating by interpolating values into placeholders.
install
npm install interpol8
example
const interpolate = // -> 'Hello, world' // nested, arrays, brackets, dots, whatever, it all works as one would expect // -> 'Hello, world' // custom delimiters // -> 'Hello, world'
API
interpolate(template, data, options)
template: string
data: object
options: object
left: string, {{
left delimiterright: string, }}
right delimiter