gulp-tumblr-theme-parser

1.0.2 • Public • Published

gulp-tumblr-theme-parser Build Status

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' }

Readme

Keywords

Package Sidebar

Install

npm i gulp-tumblr-theme-parser

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ish1r0k1