list_templates() — flask Function Reference
Architecture documentation for the list_templates() function in templating.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 16f09dbc_ac83_37d4_7e88_f3c868b7d86e["list_templates()"] ce7c5a28_2f4c_e0c5_2d77_2fb8ab5e5b96["DispatchingJinjaLoader"] 16f09dbc_ac83_37d4_7e88_f3c868b7d86e -->|defined in| ce7c5a28_2f4c_e0c5_2d77_2fb8ab5e5b96 style 16f09dbc_ac83_37d4_7e88_f3c868b7d86e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/templating.py lines 107–119
def list_templates(self) -> list[str]:
result = set()
loader = self.app.jinja_loader
if loader is not None:
result.update(loader.list_templates())
for blueprint in self.app.iter_blueprints():
loader = blueprint.jinja_loader
if loader is not None:
for template in loader.list_templates():
result.add(template)
return list(result)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does list_templates() do?
list_templates() is a function in the flask codebase, defined in src/flask/templating.py.
Where is list_templates() defined?
list_templates() is defined in src/flask/templating.py at line 107.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free