From 763a03927602ef739fae782a4c9ffa3c4670f0a5 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Mon, 16 Nov 2015 16:49:43 -0800 Subject: [PATCH] Add Panini.refresh() to readme --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index ad92788..6f99aba 100644 --- a/readme.md +++ b/readme.md @@ -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`