I have a simple component that I'd like to provide a hook for dynamically named partials.
ideally I'd like to support this interface
{{my-thing displayPartial="wat"}}
then the user would declare a partial template "-wat.hbs" and it would be included
Currently this is what I'm doing inside the components hbs (that doesn't work)
{{partial displayPartial}}
Edit
or an optional block based version
{{#my-thing}}
<p>{{result.name}}</p>
{{/my-thing}}
then in the component hbs I'd yield this out inside my each loop/etc
{{#each x in controller}}
{{yield}}
{{/each}}
The issue w/ the block version is that I can't seem to pass "result" (ie- yield result blows up)