Skip to content

Commit

Permalink
Add Panini.refresh() to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Nov 17, 2015
1 parent c7b65ad commit 763a039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ gulp.task('default', function() {
});
```

Note that Panini loads layouts, partials, helpers, and data files once on first run. Whenever these files change, call `panini.refresh()` to get it up to date. You can easily do this inside a call to `gulp.watch()`:

```js
gulp.watch(['./src/{layouts,partials,helpers,data}/**/*'], [panini.refresh]);
```

## Options

### `root`
Expand Down

0 comments on commit 763a039

Please sign in to comment.