The project uses gulp. The gulpfile.js is configured to automatically reload using browsersync.
I am trying to connect and configure the panini template engine in the gulpfile.js file like this:
gulp.task('compile-html', function() { gulp.src('html/pages/**/*.html') .pipe(panini({ root: 'html/pages/', layouts: 'html/layouts/', partials: 'html/partials/', helpers: 'html/helpers/', data: 'html/data/' })) .pipe(gulp.dest('app')) .on('finish', browserSync.reload); }); gulp.task('compile-html:reset', function(done) { panini.refresh(); done(); }); Here is the whole code
When you call watch page index.html not compiled. In what m. mistake?
;in the linedata: 'html;/data/'- greybutton"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."- try to call refresh ongulp.watch- lexxl