Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partials folder structure #198

Open
nicofonseca opened this issue Oct 7, 2020 · 2 comments
Open

Partials folder structure #198

nicofonseca opened this issue Oct 7, 2020 · 2 comments

Comments

@nicofonseca
Copy link

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!

@SamesJeabrook
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants