gulp-data-matter

0.1.1 • Public • Published

gulp-data-matter

Extracts front-matter from files using gray-matter and stores it in file.data via gulp-data.

Example

var gulp = require("gulp");
var hb = require("gulp-hb");
var dataMatter = require("gulp-data-matter");
 
gulp.task("handlebars", function() {
  return gulp.src("src/**/*.hbs")
    .pipe(dataMatter())
    .pipe(hb())
    .pipe(gulp.dest("dest"));
});

License

MIT

Package Sidebar

Install

npm i gulp-data-matter

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • kflorence