-
Notifications
You must be signed in to change notification settings - Fork 115
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
Correctly match runtime classnames to path-derived component names #151
Conversation
👍 |
@barneycarroll I'll look this over when I get into the office, and merge it and cut another release. |
@barneycarroll in #121 you mentioned that the lookup for the class names was brittle. I agree, but was wondering if you knew of a better way to get this at this time. Not that it prevents this from being merged, but would like it to be a solid as possible. @rwjblue since you chimed in, do you have any ideas to make this more solid? This is one of the areas that would be nice to get a little more solid. |
@barneycarroll @rwjblue this still seems like an odd fix. Just want to see if either of you have an idea of how the path of the component could be grabbed other then using |
Thanks for coming back to this @webark. The thread about beefing up |
TL; DR: no, not really. The fact that this fix is weird is a consequence of the fact that the code it fixes is hacky as hell. The patch makes it consistent, but in so doing draws attention to the lack of solid principles behind that (necessary!) consistency. The lack of solid principles can be attributed to the fact that we're using I took at look at ember.js source to see how I thought about taking the pedantic route and refactoring |
fixed with #156 |
Thanks for this @barneycarroll ! glad we found a good solution! Sorry this one had to close.. The merged one is all yours! 😄 |
In trying to work out why people affected by #121 recovered while I was left without the right in-markup hooks, I realise our slightly unorthodox pod hierarchy has splat namespacing (to deal with the fact we're building several apps in one with concerns of a variety of degrees of isolation) eg
./app/{{esotericNamespace}}/components/{{component-name}}
.In any case, the 0.2 betas fail to match hooks in the generated CSS and the markup. Upon debug it was clear that there was a mismatch between the name-generation logic in component-styles and component-names (specifically, this line).