index.js
function viewStream(view) {
  return function() {
    var stream = utils.through.obj();
    stream.setMaxListeners(0);
    setImmediate(function(item) {
      stream.write(item);
      stream.end();
    }, this);
    return outStream(stream, view);
  };
}
function viewStream(view) {
  return function() {
    var stream = utils.through.obj();
    stream.setMaxListeners(0);
    setImmediate(function(item) {
      stream.write(item);
      stream.end();
    }, this);
    return outStream(stream, view);
  };
}
function viewStream ( view ) { return function ( ) { var stream = utils . through . obj ( ) ; stream . setMaxListeners ( 0 ) ; setImmediate ( function ( item ) { stream . write ( item ) ; stream . end ( ) ; } , this ) ; return outStream ( stream , view ) ; } ; }
Push the current view into a vinyl stream.

```js
app.pages.getView('a.html').toStream()
.on('data', function(file) {
console.log(file);
//=> <Page "a.html" <Buffer 2e 2e 2e>>
});
```

@name view.toStream
@return {Stream}
@api public
Push the current view into a vinyl stream .