Nested Plugins in Aurelia

I want to create a nested plugin in a way that I described here.

I would be grateful if any one could come up with a solution.

Thanks in advance.