Method: flask.templating._render
Calls: 41, Exceptions: 0, Paths: 1Back
Path 1: 41 calls (1.0)
Flask (40) test_custom_template_loader.
Template (41)
{} (13) {'value': 'abcd'} (9) {'value': False} (9) dict (3) {'whiskey': 42} (2) {'value': 23} (2) {'foo': '
'dcba' (9) '\n Success!\n' (9) '42' (3) 'Hello from the Admin' (2) 'eggs' (1) 'Hello from the Frontend' (1) "I'm nested" (1) '43 is not the answer....
1def _render(app: Flask, template: Template, context: dict[str, t.Any]) -> str:
2 app.update_template_context(context)
3 before_render_template.send(
4 app, _async_wrapper=app.ensure_sync, template=template, context=context
5 )
6 rv = template.render(context)
7 template_rendered.send(
8 app, _async_wrapper=app.ensure_sync, template=template, context=context
9 )
10 return rv