DEV: Allows server_plugin_outlet to use local variable (PR #12598)

@jjaffeux @SamSaffron


@jjaffeux what is the context here?

not sure if we are going to merge this, but we certainly should never ever do unless ... elseif ... else is far less confusing.

something about the code her fees fragile.

also must have a test for this key functionality.

@jjaffeux what is the context here?

In server_plugin_outlet we can not pass the data to the view because inline render does not use passed local data. So, I did these changes to pass the data to the views using server_plugin_outlets.

I needed it to add a field in the embed topic view.

I see, I assume we have a workaround for now. Going to close this.