Load a stored resource by id, optionally rendering it
Load a stored resource by its id, optionally rendering it as a template.
Args:
resource_id: The id (path) of the resource to load.
template_kwargs: When omitted, the resource’s loaded content is returned
as-is. When provided (any dict, incl. {}), text is rendered as a
Jinja template with these variables; media raises loudly (400).
Returns:
The loaded (and optionally rendered) content — text or a MediaBlock.
A missing resource is a 404; a traversal-escaping id, a render of media, or
broken client-supplied Jinja is a 400. Genuine storage/transport failures
raise other types and propagate as a 500.
Authorizations
Body
Load a stored resource by resource_id, optionally rendering it.
When template_kwargs is omitted the loaded content is returned as-is (a
template/text resource as its text, a document as extracted text, media as a
MediaBlock). When provided (any object, including {}) the caller intends
a render: text is rendered as a Jinja template with these variables; media
cannot be rendered and is refused with a 400.
Response
Success.

