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

figure out how to resolve templates on a default resolver #23

Closed
ryanflorence opened this issue Mar 28, 2014 · 4 comments
Closed

figure out how to resolve templates on a default resolver #23

ryanflorence opened this issue Mar 28, 2014 · 4 comments

Comments

@ryanflorence
Copy link
Contributor

resolver.resolve(fullName) just looks on Ember.TEMPLATES, but something else in an application does the work of moving <script> tags to Ember.TEMPLATES, which won't necessarily have been done yet.

related #20

@stefanpenner
Copy link
Member

something the resolver must absorb, should work fine in EAK/CLI style apps

@ryanflorence
Copy link
Contributor Author

related #20

@ryanflorence
Copy link
Contributor Author

For now: http://emberjs.jsbin.com/ralisiwa/22/edit

Assuming you are using some sort of precompile step that adds templates to Ember.TEMPLATES:

App.XFooComponent = Ember.Component.reopen({
  layout: Ember.TEMPLATES['component/x-foo']
});

If you are using <script> templates. You could reopen the resolveTemplate method of DefaultResolver and have it go find the script tags and compile them.

You probably shouldn't be using script templates though ...

@Turbo87
Copy link
Member

Turbo87 commented Oct 14, 2017

this seems no longer relevant, closing due to age

@Turbo87 Turbo87 closed this as completed Oct 14, 2017
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

3 participants