1.0.0 • Published 4 years ago
tubeschoomper v1.0.0
tube schoomper
Install
npm install tubeschoomperUsage
import { schoomp } from 'tubeschoomper';
schoomp(template, data, opts);
// see example.js for more detailstemplate should be an object. Any parameters you want replaced should match this pattern: "@{{key}}" where 'key' is a dot-notation key to the property in the data object.
Options
The opts parameter should be an object with the following properties.
defaultValue
If this is not set, any values which are not matched by an property accessor or do not exist will be set to 'undefined' (note that it will be a string, not a literal).
1.0.0
4 years ago