assemble-middleware-buffer ![NPM version](https://camo.githubusercontent.com/1c74c8ea94871caaa7e0f136eb79300d93ddd648d4e5da6203e91a96decc2ce6/68747470733a2f2f62616467652e667572792e696f2f6a732f617373656d626c652d6d6964646c65776172652d6275666665722e706e67)
Buffer files into a specified array on the Assemble context.
Install
Install with npm:
npm i assemble-middleware-buffer --save-dev
Buffer
buffer
Add files to the specified array on Assemble.
Usage
var assemble = require('assemble');
var buffer = require('assemble-middleware-buffer')(assemble);
var tap = require('gulp-tap');
assemble.src('path/to/pages/*.hbs')
.pipe(buffer({type: 'posts'}))
.pipe(tap(function (file) {
console.log('posts', assemble.posts);
});
options
{Object}: object containing options: * {String}type
name of the array to store the files in.return
{Stream} stream to continue piping.
Author
Brian Woodward
License
Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license
This file was generated by verb-cli on June 30, 2014.