# An interesting strategy for passing properties via raw template plugin outlets

**URL:** <https://meta.discourse.org/t/an-interesting-strategy-for-passing-properties-via-raw-template-plugin-outlets/210054>\
**Category:** Development\
**Created:** [November 24, 2021, 11:23am UTC](https://meta.discourse.org/t/an-interesting-strategy-for-passing-properties-via-raw-template-plugin-outlets/210054 "2021-11-24T11:23:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 24, 2021, 11:57am UTC](https://meta.discourse.org/t/an-interesting-strategy-for-passing-properties-via-raw-template-plugin-outlets/210054/2 "2021-11-24T11:57:45Z")

</div>

The ‘raw’ system is a discourse-specific thing, so you won’t find anything about it in the Ember guides.

> [@merefield](#):
>
> I can only assume this is a stable strategy for passing down the model properties because it’s being employed here - any caveats?

It looks like it’s pretty deliberate in the core code, so I think it’s safe to use it:

> <https://github.com/discourse/discourse/blob/fa2fd7fff85947c90d491ef4d52bfa8f3b90a28b/app/assets/javascripts/discourse/app/helpers/raw-plugin-outlet.js#L8-L8>

In fact, it doesn’t look like raw outlets have the ability to pass anything like the ‘`args`’ you find in regular plugin-outlets. So `context` is the only way to go.

> [@merefield](#):
>
> One of the reasons I was finding these available plugin outlets less useful was because they don’t often explicitly pass down the relevant model.

Please do feel free to make core PRs if you feel any useful data is missing in regular plugin outlets. Adding new arguments to outlets is relatively safe, backwards compatible, and has negligable performance impact, so it’s unlikely we’ll refuse.

---

_[View the full topic](https://meta.discourse.org/t/an-interesting-strategy-for-passing-properties-via-raw-template-plugin-outlets/210054)._
