Best way to dynamically render an arbitrary post from a plugin

In my DiscPage plugin, client-side, when a user is on the tag route, I need to render a specific post in a dynamically created div. I load the post using the API, but then I have trouble rendering it correctly (fully cooked + decorated).

My current implementation creates a decoratorHelper from scratch, but some parts (such as the post model) are missing, leading to incompatibilities with other plugins.

Any idea on how to move forward? How could I get a clean widget/helper on a post, without relying on the current route?


You can try PrettyText.cook
Check in the codebase for examples on both client and server sides.