Method: flask.templating.DispatchingJinjaLoader.list_templates
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
['frontend/index.html', 'admin/index.html'] (1)
1def list_templates(self) -> list[str]:
2 result = set()
3 loader = self.app.jinja_loader
4 if loader is not None:
5 result.update(loader.list_templates())
6
7 for blueprint in self.app.iter_blueprints():
8 loader = blueprint.jinja_loader
9 if loader is not None:
10 for template in loader.list_templates():
11 result.add(template)
12
13 return list(result)