Closed TheReincarnator closed 5 years ago
Adds an option to override how partial IDs are created.
This gives you the ability to have a folder structure of partials, like this:
src partial de top.hbs bottom.hbs en top.hbs bottom.hbs
With a configuation like this:
partials: [path.join(process.cwd(), "src/partial/**/*.hbs")], getPartialId: path => path.replace(/^.*\/src\/partial\/(.*)\.[^.]+$/, "$1"),
a partial at src/partial/en/header.hbs would become ID en/header.
src/partial/en/header.hbs
en/header
Adds an option to override how partial IDs are created.
This gives you the ability to have a folder structure of partials, like this:
With a configuation like this:
a partial at
src/partial/en/header.hbs
would become IDen/header
.