(template: Template, context: dict, app: Quart)
| 71 | |
| 72 | |
| 73 | async def _render(template: Template, context: dict, app: Quart) -> str: |
| 74 | await before_render_template.send_async( |
| 75 | app, |
| 76 | _sync_wrapper=app.ensure_async, # type: ignore[arg-type] |
| 77 | template=template, |
| 78 | context=context, |
| 79 | ) |
| 80 | rendered_template = await template.render_async(context) |
| 81 | await template_rendered.send_async( |
| 82 | app, |
| 83 | _sync_wrapper=app.ensure_async, # type: ignore[arg-type] |
| 84 | template=template, |
| 85 | context=context, |
| 86 | ) |
| 87 | return rendered_template |
| 88 | |
| 89 | |
| 90 | async def _default_template_ctx_processor() -> dict[str, Any]: |
no outgoing calls
no test coverage detected
searching dependent graphs…