Skip to content

h3rk12/gulp-tumblr-theme-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published