Home / Function/ _get_source_fast() — flask Function Reference

_get_source_fast() — flask Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4dbac2da_ce3c_7080_fe1b_8d51de4d6a30["_get_source_fast()"]
  ce7c5a28_2f4c_e0c5_2d77_2fb8ab5e5b96["DispatchingJinjaLoader"]
  4dbac2da_ce3c_7080_fe1b_8d51de4d6a30 -->|defined in| ce7c5a28_2f4c_e0c5_2d77_2fb8ab5e5b96
  b3cc43b1_0505_0227_784f_924230ab33b2["get_source()"]
  b3cc43b1_0505_0227_784f_924230ab33b2 -->|calls| 4dbac2da_ce3c_7080_fe1b_8d51de4d6a30
  8030a5bc_ccd5_2b7d_46af_a753d088616b["_iter_loaders()"]
  4dbac2da_ce3c_7080_fe1b_8d51de4d6a30 -->|calls| 8030a5bc_ccd5_2b7d_46af_a753d088616b
  b3cc43b1_0505_0227_784f_924230ab33b2["get_source()"]
  4dbac2da_ce3c_7080_fe1b_8d51de4d6a30 -->|calls| b3cc43b1_0505_0227_784f_924230ab33b2
  style 4dbac2da_ce3c_7080_fe1b_8d51de4d6a30 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/templating.py lines 87–95

    def _get_source_fast(
        self, environment: BaseEnvironment, template: str
    ) -> tuple[str, str | None, t.Callable[[], bool] | None]:
        for _srcobj, loader in self._iter_loaders(template):
            try:
                return loader.get_source(environment, template)
            except TemplateNotFound:
                continue
        raise TemplateNotFound(template)

Subdomains

Called By

Frequently Asked Questions

What does _get_source_fast() do?
_get_source_fast() is a function in the flask codebase, defined in src/flask/templating.py.
Where is _get_source_fast() defined?
_get_source_fast() is defined in src/flask/templating.py at line 87.
What does _get_source_fast() call?
_get_source_fast() calls 2 function(s): _iter_loaders, get_source.
What calls _get_source_fast()?
_get_source_fast() is called by 1 function(s): get_source.

Analyze Your Own Codebase

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

Try Supermodel Free