Skip to content

Push a collection of templates into an assemble stream as vinyl objects.

License

Notifications You must be signed in to change notification settings

doowb/assemble-push

Repository files navigation

assemble-push NPM version

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

Return a function that will create a stream for pushing template objects onto a stream.

  • app {Object}: An application inherited from template.
  • 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'));
});

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.

About

Push a collection of templates into an assemble stream as vinyl objects.

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published