.insertData - PeterNaydenov/code-assembly-line GitHub Wiki
Insert one or more data-records into template engine.
tplEngine.insertData ( data )
- data: {}. Keys are data-names. Values are data itself;
- Method return options:
- tplEngine;
- Method is chainable;
Example:
const data = {
'alt' : 'This image has no alt text.'
, 'user' : 'user unknown'
}
tplEngine.insertData ( data )
Data 'alt' and 'user' are defined.