ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

feat(partials): Parse function to (re)name partials. #291

Open djaax opened 3 years ago

djaax commented 3 years ago

We need more flexibility when it comes to naming partials and don't want to be constrained by our folder structure.

For example, we have

/components
    /button
        button.hbs
    /template
        otherTemplate.hbs

Currently, this names the partial button/button and template/otherTemplate.

This renaming function allows more flexibility, e.g., naming the two templates button and otherTemplate, ignoring the folder structure.

UziTech commented 3 years ago

All new development of express-handlebars is done on a new repo express-handlebars/express-handlebars. Please create a PR there.