0.1.1 • Published 9 years ago
assemble-push v0.1.1
assemble-push
Push a collection of templates into an assemble stream as vinyl objects.
Install
Install with npm
npm i assemble-push --save
Run tests
npm test
Usage
var assemblePush = require('assemble-push');
API
.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);
push
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'));
});
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Brian Woodward
License
Copyright (c) 2014 Brian Woodward
Released under the MIT license
This file was generated by verb on December 09, 2014.