项目作者: jbenner-radham

项目描述 :
Render mustachio'd templates (Handlebars.js) into HTML.
高级语言: JavaScript
项目地址: git://github.com/jbenner-radham/gulp-stachio.git
创建时间: 2014-09-15T21:08:38Z
项目社区:https://github.com/jbenner-radham/gulp-stachio

开源协议:MIT License

下载


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.

  1. var gulp = require('gulp');
  2. var stachio = require('gulp-stachio');
  3. gulp.task('default', function () {
  4. return gulp.src('src/file.hbs')
  5. /**
  6. * Optionally include variables via a context object.
  7. * `.pipe(stachio({ hello: 'world' }))`
  8. */
  9. .pipe(stachio())
  10. .pipe(gulp.dest('dist'));
  11. });

Testing

  1. $ npm test

License

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