-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
defaultType support, mv partials code to resolver #192
Conversation
[ 'router:/my-app/main/main', 'my-app/src/router' ], | ||
[ 'route:/my-app/routes/application', 'my-app/src/ui/routes/application/route' ], | ||
[ 'template:/my-app/routes/application', 'my-app/src/ui/routes/application/template' ], | ||
[ 'component:/my-app/components/my-input', 'my-app/src/ui/components/my-input/component' ], | ||
[ 'template:/my-app/routes/components/my-input', 'my-app/src/ui/components/my-input/template' ], | ||
[ 'template:/my-app/components/my-input', 'my-app/src/ui/components/my-input/template' ], | ||
[ 'component:/my-app/components/my-input/my-button', 'my-app/src/ui/components/my-input/my-button/component' ], | ||
[ 'template:/my-app/components/my-input/my-button', 'my-app/src/ui/components/my-input/my-button/template' ], | ||
[ 'template:/my-app/routes/-author', 'my-app/src/ui/partials/author' ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the other changes in this PR make partials still work, why remove the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment about this in the source- I'd like to see this bulk test be simmered down into smaller focused tests with better descriptions of the intent. @iezer and I took the first steps toward some utilities to help keep those test terse.
}, | ||
|
||
/* | ||
* templates may acutally be partial lookups, so consider them as possibly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/acutally/actually/
@@ -23,11 +25,36 @@ const Resolver = DefaultResolver.extend({ | |||
normalize: null, | |||
|
|||
resolve(lookupString) { | |||
/* | |||
* Ember paritals are looked up as templates. Here we replace the template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
defaultType
to the Ember resolver config.defaultType
inRequireJSRegistry
to optionally check for the non-typed path.Closes: #189
Replaces: #183
with @iezer :-)