Menu icon Foundation
Partial html not refreshing after save in Yeti Launch

Hi, I am new to foundation. I am implementing a site with Yeti Launch and found the following issue.

I am using the ZURB template.

- layouts
- default.html
- partials
- header.html

In my default.html i have the following:
{{> header]}
{{> body}}

But I found that each time I updated the header.html, nothing change in browser. The only way to solve it is to remove {{> header}} and hit save and put it back again, then the change shown.

Is there a way to fix it?
Thanks

yetifoundation 6paniniPartials

Hi, I am new to foundation. I am implementing a site with Yeti Launch and found the following issue.

I am using the ZURB template.

- layouts
- default.html
- partials
- header.html

In my default.html i have the following:
{{> header]}
{{> body}}

But I found that each time I updated the header.html, nothing change in browser. The only way to solve it is to remove {{> header}} and hit save and put it back again, then the change shown.

Is there a way to fix it?
Thanks

Brian Tan over 2 years ago

This bug was fixed 4 days ago. Make sure you have latest version of gulpfile.js. It should have the following code in pages:reset task (browser reload is now merged into individual task). If not grab it from https://github.com/zurb/foundation-zurb-template/blob/master/gulpfile.js

...
gulp.task('pages:reset', function(done) {
  panini.refresh();
  gulp.run('pages');
  done();
});
...
// Build the site, run the server, and watch for file changes
gulp.task('default', ['build', 'server'], function() {
  gulp.watch(PATHS.assets, ['copy']);
  gulp.watch(['src/pages/**/*'], ['pages']);
  gulp.watch(['src/{layouts,partials,helpers,data}/**/*'], ['pages:reset']);
  gulp.watch(['src/assets/scss/**/{*.scss, *.sass}'], ['sass']);
  gulp.watch(['src/assets/js/**/*.js'], ['javascript']);
  gulp.watch(['src/assets/img/**/*'], ['images']);
  gulp.watch(['src/styleguide/**'], ['styleguide']);
});