3.0.1 • Published 6 years ago
@eggplantio/epf-snippets v3.0.1
EGGPLANT FUNCTIONAL SNIPPETS
Library to load and generate sensetalk snippets for EPF.
Quick start
You'll need a template file of sensetalk snippets loaded into a string to begin with. Then usage of the lib is as follows:
import Template from '@eggplantio/epf-snippets'
const templateFile = '...'
const tpl = new Template(templateFile)
tpl.listSnippets()
tpl.populate('Snippet1', { param1: 'foo', param2: 'bar' })