Render mustachio'd templates (Handlebars.js) into HTML.
- Context Objects
- Layouts
- Metadata Files
- Partials
- Revamp Tests
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'));
});
$ npm test
The MIT License (Expat). See the license file for details.