Skip to main content

store_rendered_templates

Store templates and contexts that are rendered.

The context is copied so that it is an accurate representation at the time of rendering.

def store_rendered_templates(
store: dict,
signal: Any,
sender: Any,
template: Template,
context: Context,
**kwargs: dict
) - > null

Store templates and contexts that are rendered. The context is copied so that it is an accurate representation at the time of rendering.

Parameters

NameTypeDescription
storedictThe dictionary used to accumulate rendered template names and their associated context data.
signalAnyThe signal instance that triggered this handler, typically a Django template_rendered signal.
senderAnyThe object that sent the signal, usually the Template class or instance.
templateTemplateThe template object or name that was just rendered.
contextContextThe template context object containing the variables available during rendering.
**kwargsdictAdditional keyword arguments passed by the signal dispatcher.

Returns

TypeDescription
nullNo value is returned; the provided store dictionary is modified in-place.