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

Feature request: support for block-params #40

Closed
jamesarosen opened this issue Apr 30, 2015 · 4 comments
Closed

Feature request: support for block-params #40

jamesarosen opened this issue Apr 30, 2015 · 4 comments

Comments

@jamesarosen
Copy link

I have a component that yields block-params. That is, its template has {{yield something}} and it is used like

{{#my-component as |x|}}
  Use {{x}} somehow.
{{/my-component}}

I can't use test-module-for-component (or ember-qunit's moduleForComponent) because I need the as |x| in the invocation of my-component.

The only solution I've come up with is writing an integration test that compiles a template and renders an Ember.View. (And I actually haven't gotten that working yet, but suspect I could.)

@rwjblue
Copy link
Member

rwjblue commented May 1, 2015

We are working on (and nearly finished with) new test helpers exactly for this purpose. There are a couple remaining problem (like inline template precompilation without introducing production test issues with the template compiler present in tests and naming).

@rwjblue
Copy link
Member

rwjblue commented May 1, 2015

See discussion in #38 for current status (mostly agreed upon).

@ef4
Copy link
Contributor

ef4 commented May 2, 2015

@rwjblue
Copy link
Member

rwjblue commented May 14, 2015

Closing, as I believe this has landed and is working pretty well.

@rwjblue rwjblue closed this as completed May 14, 2015
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