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

Can't have two partials with the same name #1

Closed
YoussefKababe opened this issue Oct 17, 2015 · 0 comments
Closed

Can't have two partials with the same name #1

YoussefKababe opened this issue Oct 17, 2015 · 0 comments
Assignees

Comments

@YoussefKababe
Copy link
Owner

Due to the mechanism used to register partials in Exbars, when two partials with the same name exist in the views folder structure, one of them will be ignored. As a workaround to this issue, users can use different names for their partials even if they are not in the same folder, ex. /view/users/_users_form.hbs and /view/articles/_articles_form.hbs

This can be fixed by creating a custom partial helper and use it instead of the default one offered by Handlebars.

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

No branches or pull requests

1 participant