Closed alexdevero closed 6 years ago
Nested partials contain the folder structure in the partial name based on the glob parent. I think you're looking for:
{{> homepage/home-hero}}
To see the registered partials, helpers, decorators, and top-level data keys, use the debug
option:
const hbStream = handlebars({ debug: true })
.partials('./src/templates/partials/**/*.hbs')
.helpers('./src/templates/helpers/**/*.js')
.data('./src/templates/data/**/*.{js,json}')
Thank you! I knew it I have to use the folder structure pattern */*
! Thank you very much @shannonmoeller.
My pleasure.
Partials don' work when using nested folder. Partials right inside
partials
folder work (footer.hbs
,nav.hbs
). Partials insidehomepage
folder don't work (home-hero.hbs
,home-main.hbs
).Project structure:
Gulp task:
Error: