I think I’ve got the basic gist of this–though I’m happy to hear if anyone else has suggestions.
To pass along actions and other arguments to a plugin outlet, you can add them to the plugin outlet reference just like you can with a reference to a component.
But watch out that you are passing the right arguments–ie, the right variable references.
Using my example: Here’s a component reference that appears in the template composer.hbs:
{{composer-action-title
model=model
openComposer=(action "openComposer")
closeComposer=(action "closeComposer")
canWhisper=canWhisper
tabindex=8
}}
If you want to replace this reference with a reference to a plugin outlet (obviously being careful if you are editing a template file, given the increased difficulty of maintaining things as discourse changes), and you want the plugin outlet itself to reference the composer-action-title component, you could put this into composer.hbs:
{{plugin-outlet name="cool-outlet" args=(hash
model=model
openComposer=(action "openComposer")
closeComposer=(action "closeComposer")
canWhisper=canWhisper
tabindex=8
)
}}
And then in connectors/cool-outlet/cool-outlet.hbs, this should work to refer to the composer-action-title component:
{{composer-action-title
model=model
openComposer=openComposer
closeComposer=closeComposer
canWhisper=canWhisper
tabindex=8
}}
Note the variables here, they are the variables set in the composer.hbs file.