Push a collection of templates into an assemble stream as vinyl objects.
Install with npm
npm i assemble-push --save
npm test
var assemblePush = require('assemble-push');
Return a function that will create a stream for pushing template objects onto a stream.
app
{Object}: An application inherited fromtemplate
.returns
{Function}: Factory function used to build a stream.
var assemble = require('assemble');
var push = require('assemble-push')(assemble);
Return a stream that will push a collection of templates onto a stream.
collection
{String}: Name of the collection to push into the stream.returns
{Stream}: Stream used in piping objects through.
// When you have a `posts` template type,
// push the posts into the stream to render
assemble.task('build-posts', function () {
push('posts')
.pipe(assemble.dest('_gh_pages/posts'));
});
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Brian Woodward
Copyright (c) 2014 Brian Woodward
Released under the MIT license
This file was generated by verb on December 09, 2014.