How to use panini - 10 common examples

To help you get started, we’ve selected a few panini examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github johndavemanuel / bootstrap-gulp-starter-template / gulpfile.js View on Github external
function compileHTML() {
  console.log('---------------COMPILING HTML WITH PANINI---------------');
  panini.refresh();
  return src('src/pages/**/*.html')
    .pipe(panini({
      root: 'src/pages/',
      layouts: 'src/layouts/',
      // pageLayouts: {
      //     // All pages inside src/pages/blog will use the blog.html layout
      //     'blog': 'blog'
      // }
      partials: 'src/partials/',
      helpers: 'src/helpers/',
      data: 'src/data/'
    }))
    .pipe(dest('dist'))
    .pipe(browserSync.stream());
}
github johndavemanuel / bootstrap-gulp-starter-template / gulpfile.js View on Github external
function resetPages(done) {
  console.log('---------------CLEARING PANINI CACHE---------------');
  panini.refresh();
  done();
}
github SAP / luigi / website / landingpage / dev / gulpfile.babel.js View on Github external
function resetPages(done) {
  panini.refresh();
  done();
}
github diegofelipece / mussum-ipsum / site / gulpfile.babel.js View on Github external
function resetPages(done) {
  panini.refresh();
  done();
}
github intelsdi-x / snap / zurb-template / gulpfile.babel.js View on Github external
function resetPages(done) {
  panini.refresh();
  done();
}
github JayBauer / Email-Builder / gulpfile.babel.js View on Github external
function resetPages(done) {
  panini.refresh();
  done();
}
github JayBauer / Email-Builder / gulpfile.babel.js View on Github external
function pages() {
  return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
    .pipe(panini({
      root: 'src/pages',
      layouts: 'src/layouts',
      partials: 'src/partials',
      helpers: 'src/helpers'
    }))
    .pipe(inky())
    .pipe(gulp.dest('dist'));
}
github SAP / luigi / website / landingpage / dev / gulpfile.babel.js View on Github external
function pages() {
  return gulp
    .src('src/pages/**/*.{html,hbs,handlebars}')
    .pipe(
      panini({
        root: 'src/pages/',
        layouts: 'src/layouts/',
        partials: 'src/partials/',
        data: 'src/data/',
        helpers: 'src/helpers/'
      })
    )
    .pipe(gulp.dest(PATHS.dist));
}
github exceptionless / Exceptionless / src / Exceptionless.EmailTemplates / gulpfile.babel.js View on Github external
function pages() {
  return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
    .pipe(panini({
      root: 'src/pages',
      layouts: 'src/layouts',
      partials: 'src/partials',
      helpers: 'src/helpers'
    }))
    .pipe(inky())
    .pipe(gulp.dest('dist'));
}

panini

A super tiny flat file compiler.

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular panini functions