handlebars-loader
handlebars-loader copied to clipboard
Partials folder structure
Hi team!
I have the following issue and I wanted to know if there is a solution for it.
I have this folder structure:
And this is the PartialDirs config:
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!
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.
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.