Skip to content

jbenner-radham/gulp-stachio

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published