Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8803d14
commit 7048cc2
Showing
2 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
docs/src/content/recipes/write-views-to-the-file-system.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: | ||
category: recipes | ||
--- | ||
|
||
The [loading-views](loading-views.md) recipe shows you how to add views to a collection. This recipe shows you how to write views to the file system after they're loaded onto a collection. | ||
|
||
|
||
Push views onto a vinyl stream | ||
|
||
|
||
```js | ||
app.task('default', function() { | ||
app.pages('foo/*.hbs'); | ||
|
||
return app.toStream('pages') | ||
.pipe(foo()) | ||
.pipe(bar()) | ||
.pipe(app.dest('.')); | ||
}); | ||
``` |