MCPcopy Create free account
hub / github.com/pallets/quart / _render

Function _render

src/quart/templating.py:73–87  ·  view source on GitHub ↗
(template: Template, context: dict, app: Quart)

Source from the content-addressed store, hash-verified

71
72
73async 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
90async def _default_template_ctx_processor() -> dict[str, Any]:

Callers 2

render_templateFunction · 0.85
render_template_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…