Node-Underscore-HTML-Generator
Pass in a json data object and the path to the Underscore template you want to populate. Returns a data object with property 'html' which contains the populated template.
Installation
npm install node-underscore-html-generator --save
Usage
var NodeUndrsc = ;// Then in your code where necessary //@params {string} - filePath Path to the file containing the template//@params {object} - json object Object containing the data to populate the templatevar filePath = 'path/to/my/template.html';var jsonObject = "name": "Jackie" "email": "chan@funny.com";NodeUndrsc;
Testing
npm test