-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panini does not output pages with html extension when pages are .hbs #171
Comments
A workaround I found is:
var ext_replace = require('gulp-ext-replace');
gulp.task('default', function () {
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(ext_replace('.html')) // <-- this will rename all your output files to `.html`
.pipe(gulp.dest(PATHS.dist));
}) |
Yeah, that's what I did in the end. But it's still a bug I think? |
It is indeed a bug. I'll take a PR if someone wants to write one 👌 |
It would be cool to have all files in handlebars format in panini js |
So looking at the gulpfile, the pages task the src accepts three different extensions, But when I save my pages as .hbs, panini keeps the .hbs extension in
dist
is there something I'm missing?The text was updated successfully, but these errors were encountered: