Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.39 KB

README.md

File metadata and controls

51 lines (43 loc) · 1.39 KB

gulp-stachio

npm Version GitHub License Build Status

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

Status

  • Context Objects
  • Layouts
  • Metadata Files
  • Partials
  • Revamp 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'));
});

Testing

$ npm test

License

The MIT License (Expat). See the license file for details.