html-factory
It is a tool that replicates the HTML from excel and HTML templates.
Install
npm install html-factory
How To Use
- First, edit the template
- Then edit the Excel
- Convert object array coming from Excel to last
template edit
I follow the notation of the mustache
sample
View:
Template:
* {{name.first}} {{name.last}}* {{age}}
Output:
* Michael Jackson* RIP
See below for details
Convert object array
object['template'] and object['path'] is required.
- File is saved in dest folder while maintaining the structure of the value of object['path']
- look for a object['template'] value file from a template folder
var Factory = ; ;
test command
$ npm test
start command
$ npm start