MCPcopy
hub / github.com/pallets/flask / _render

Function _render

src/flask/templating.py:127–136  ·  view source on GitHub ↗
(app: Flask, template: Template, context: dict[str, t.Any])

Source from the content-addressed store, hash-verified

125
126
127def _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
139def render_template(

Callers 2

render_templateFunction · 0.85
render_template_stringFunction · 0.85

Calls 1

Tested by

no test coverage detected