express-handlebars icon indicating copy to clipboard operation
express-handlebars copied to clipboard

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

Open djaax opened this issue 4 years ago • 1 comments

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.

djaax avatar Mar 25 '21 10:03 djaax

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

UziTech avatar Mar 25 '21 13:03 UziTech