0.0.4 • Published 9 years ago
gulp-excel2html v0.0.4
gulp-excel2html
gulp-excel2html is a Gulp plugin to convert excel(xlsx) file to HTML
##Install
npm install --save-dev gulp-excel2html
##Usage
var excel2html = require('gulp-excel2html');
gulp.src('foo.xlsx')
.pipe(excel2html({
tmplFile:'src/foo_tmpl.html',
resultFile:'result.html',
dataHandle:function(excel){
//handle excel data and return something
return something;
}
}))
.pipe(gulp.dest('dist'))
##API
excel2html(options)
####options
- Type:
Object
- Required
- hasDefault
key | type | required | default | summary |
---|---|---|---|---|
tmplFile | string | Yes | None | The template file path of hogan.js |
resultFile | string | Not | result.html | The out put html file name |
dataHandle | Function | Not | Full excel data of Array | handle the data parse from xlsx file and return object for hogan.js to render html |