(app: Flask, template: Template, context: dict[str, t.Any])
| 125 | |
| 126 | |
| 127 | def _render(app: Flask, template: Template, context: dict[str, t.Any]) -> str: |
| 128 | app.update_template_context(context) |
| 129 | before_render_template.send( |
| 130 | app, _async_wrapper=app.ensure_sync, template=template, context=context |
| 131 | ) |
| 132 | rv = template.render(context) |
| 133 | template_rendered.send( |
| 134 | app, _async_wrapper=app.ensure_sync, template=template, context=context |
| 135 | ) |
| 136 | return rv |
| 137 | |
| 138 | |
| 139 | def render_template( |
no test coverage detected