0.1.0 • Published 9 years ago

gulp-stachio v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Gulp-Stachio

Render mustachio'd templates (Handlebars.js) into HTML.

Status

  • Context Objects
  • Layouts
  • Metadata Files
  • Partials
  • Revamp Unit Tests

Usage

Follows the Harp platform's _data.json & _layout.hbs conventions.

var gulp    = require('gulp');
var stachio = require('gulp-stachio');

gulp.task('default', function () {
    return gulp.src('src/file.hbs')
        /**
         * Optionally include variables via a context object.
         * `.pipe(stachio({ hello: 'world' })`
         */
        .pipe(stachio())
        .pipe(gulp.dest('dist'));
});

License

MIT © James Benner