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

Add support for multiple partials directories #20

Closed
ericf opened this issue Apr 28, 2013 · 1 comment
Closed

Add support for multiple partials directories #20

ericf opened this issue Apr 28, 2013 · 1 comment
Milestone

Comments

@ericf
Copy link
Owner

ericf commented Apr 28, 2013

Adding support for multiple partials directories will enable people to have their partials split across various directories. One common use-case is shared vs. server-only partials, where the shared partials are also used on the client, e.g., an app could have "shared/templates" and "views/partials" directories which contain templates that can be used as partials.

When naming the partials for use in other templates, each partials dir would be considered a root, therefore "views/partials/header.handlebars" would be available via {{> header}}. This creates a situation for naming collisions, which can be managed in a last-one-wins fashion.

@ericf
Copy link
Owner Author

ericf commented Apr 28, 2013

This feature could utilize #21

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