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

How to use components in nested directories #542

Closed
davidlukerice opened this issue Mar 13, 2014 · 4 comments
Closed

How to use components in nested directories #542

davidlukerice opened this issue Mar 13, 2014 · 4 comments

Comments

@davidlukerice
Copy link
Contributor

The naming conventions guide lists that it's possible but only shows an example with "controller/" (which i'm assuming should be "controllers/"?). Trying similar solutions for components doesn't seem to work.

Would originally want to do something like the following if not for the handlebars limitation of not using slashes:

{{some-dir/some-component param1=param}}

for some-component located at

/app/components/some-dir/some-component.js
@stefanpenner
Copy link
Owner

@machty is this a limitation we can remove in the future?

@davidlukerice for now, just don't use sub-dirs rather just many more dashes (hopefully we can resolve this within htmlbars/handlebars)

@mbykovskyy
Copy link

Calling a component without parameters {{some-dir/some-component}} works though.

@rwjblue
Copy link
Collaborator

rwjblue commented Jun 4, 2014

I believe that this is fixed in Handlebars master branch (which will be 2.0), but is unlikely to be back ported to the 1.X version series.

Ember doesn't currently support 2.0 so that would need to be fixed to truly fix this issue.

@GavinJoyce
Copy link

This was fixed in handlebars-lang/handlebars.js#797 and will be available in handlebars 2.0

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

5 participants