gulp-tumblr-theme-parser
v1.0.2
Published
Gulp plugin for tumblr theme parser
Downloads
1
Readme
gulp-tumblr-theme-parser
Node tumblr theme parser for gulp
Install
npm install -D gulp-tumblr-theme-parser
Basic Usage
'use strict';
var gulp = require('gulp');
var parser = require('gulp-tumblr-theme-parser');
gulp.task('build', function() {
return gulp.src('./index.html')
.pipe(parser({ data: './data.json' }))
.on('error', errorHandler)
.pipe(gulp.dest('./build'));
});
var errorHandler = function (err) {
console.log('Error: ' + err);
this.emit('end')
}
Options
data
This property can still pass an object as a file path.
{ data: { 'title': 'Hello, world.' } }
// or
{ data: './data.json' }