I am hitting an issue extending outlets in solved.
At the moment in core we have:
<ul>
<li>{{#link-to 'userActivity.likesGiven'}}Likes Given{{/link-to}}</li>
...
{{plugin-outlet "user-activity-bottom"}}
</ul>
Which we can easily change to:
<ul>
<li>{{#link-to 'userActivity.likesGiven'}}Likes Given{{/link-to}}</li>
...
{{plugin-outlet "user-activity-bottom" tagName='li'}}
</ul>
This helps somewhat as the outlets will be injected as LI elements but has a big flaw.
For my case I only want to show the “solved” link IF the user has more than 1 solution. However our current design allows no control over the “wrapping” element, nor no way to conditionally render.
@eviltrout perhaps we should allow components for plugin-outlets as well, eg:
export default Em.Component({
pluginOutlet: 'user-activity-bottom'
})
Then when we sweep through outlets we can either render a templates or explicitly defined components?