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

Partials folder structure

Open nicofonseca opened this issue 4 years ago • 2 comments

Hi team!

I have the following issue and I wanted to know if there is a solution for it.

I have this folder structure: Screen Shot 2020-10-07 at 17 37 06

And this is the PartialDirs config: Screen Shot 2020-10-07 at 17 38 20

This is working like {{> grid/grid }} but I would prefer use it like {{> grid }} Is there a way to configure this with the current folder structure?

Thanks!

nicofonseca avatar Oct 07 '20 20:10 nicofonseca

I would also like this, I want to register all my partials as global partials as I am migrating from one tool that previously did this to another.

SamesJeabrook avatar Mar 23 '23 10:03 SamesJeabrook

I resolved this in the end with a custom function that traversed all folders and returned an array of folder paths that contained .hbs files in them.

SamesJeabrook avatar Mar 23 '23 12:03 SamesJeabrook