Home / Function/ _render() — flask Function Reference

_render() — flask Function Reference

Architecture documentation for the _render() function in templating.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  d39cf1b5_5a41_f48f_3c8e_c8e0ac439c62["_render()"]
  554becd3_25b5_c670_a654_7a20377dec19["templating.py"]
  d39cf1b5_5a41_f48f_3c8e_c8e0ac439c62 -->|defined in| 554becd3_25b5_c670_a654_7a20377dec19
  7e7aa0ff_440d_2f5c_935b_74471945ad50["render_template()"]
  7e7aa0ff_440d_2f5c_935b_74471945ad50 -->|calls| d39cf1b5_5a41_f48f_3c8e_c8e0ac439c62
  ae2a3f88_c334_d39e_9e69_d55cf39c2508["render_template_string()"]
  ae2a3f88_c334_d39e_9e69_d55cf39c2508 -->|calls| d39cf1b5_5a41_f48f_3c8e_c8e0ac439c62
  style d39cf1b5_5a41_f48f_3c8e_c8e0ac439c62 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/templating.py lines 122–132

def _render(ctx: AppContext, template: Template, context: dict[str, t.Any]) -> str:
    app = ctx.app
    app.update_template_context(ctx, context)
    before_render_template.send(
        app, _async_wrapper=app.ensure_sync, template=template, context=context
    )
    rv = template.render(context)
    template_rendered.send(
        app, _async_wrapper=app.ensure_sync, template=template, context=context
    )
    return rv

Subdomains

Frequently Asked Questions

What does _render() do?
_render() is a function in the flask codebase, defined in src/flask/templating.py.
Where is _render() defined?
_render() is defined in src/flask/templating.py at line 122.
What calls _render()?
_render() is called by 2 function(s): render_template, render_template_string.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free