0.1.0 • Published 9 years ago
gulp-stachio v0.1.0
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
0.1.0
9 years ago