Closed MickL closed 7 years ago
Workaround: Just import EVERYTHING as a partial: .partial('components/**/*.hbs')
You need to specify a base
option for your first example:
hb({debug: true})
.partials([
'src/components/partial1/partial1.hbs',
'src/components/partial1/partial2.hbs'
], {
base: __dirname + '/src/components/partial1'
})
Alternatively, your workaround is actually the intended and recommended means of registering partials.
I found some weird behavior:
When passing an array to
.partials()
then the first namespace is correct but the second shows the full path on disk:If the first is using a wildcard then all of those are correct, but from the beginning its the full path again:
All the same for using
hb({partials: [...]})