Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kflorence/gulp-data-matter

Extracts front-matter from files and stores it in `file.data`
https://github.com/kflorence/gulp-data-matter

Last synced: 3 days ago
JSON representation

Extracts front-matter from files and stores it in `file.data`

Awesome Lists containing this project

README

        

# gulp-data-matter

Extracts front-matter from files using [gray-matter](https://github.com/jonschlinkert/gray-matter)
and stores it in `file.data` via [gulp-data](https://github.com/colynb/gulp-data).

## Install

`npm install gulp-data-matter --save-dev`

## Example

```javascript
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