Method: flask.templating.DispatchingJinjaLoader._iter_loaders
Calls: 33, Exceptions: 30, Paths: 3Back
Path 1: 27 calls (0.82)
'template_filter.html' (9) 'template_test.html' (9) 'simple_template.html' (3) 'nested/nested.txt' (1) 'context_template.html' (1) 'escaping_template....
tuple (27) None (27)
GeneratorExit (27)
1def _iter_loaders(
2 self, template: str
3 ) -> t.Generator[tuple[Scaffold, BaseLoader], None, None]:
4 loader = self.app.jinja_loader
5 if loader is not None:
6 yield self.app, loader
7
8 for blueprint in self.app.iter_blueprints():
9 loader = blueprint.jinja_loader
10 if loader is not None:
11 yield blueprint, loader
Path 2: 5 calls (0.15)
'frontend/index.html' (1) 'admin/index.html' (1) './admin/index.html' (1) 'missing.html' (1) 'missing_template.html' (1)
tuple (13) None (3)
GeneratorExit (3)
1def _iter_loaders(
2 self, template: str
3 ) -> t.Generator[tuple[Scaffold, BaseLoader], None, None]:
4 loader = self.app.jinja_loader
5 if loader is not None:
6 yield self.app, loader
7
8 for blueprint in self.app.iter_blueprints():
9 loader = blueprint.jinja_loader
10 if loader is not None:
11 yield blueprint, loader
Path 3: 1 calls (0.03)
'no_template.xml' (1)
tuple (1)
1def _iter_loaders(
2 self, template: str
3 ) -> t.Generator[tuple[Scaffold, BaseLoader], None, None]:
4 loader = self.app.jinja_loader
5 if loader is not None:
6 yield self.app, loader
7
8 for blueprint in self.app.iter_blueprints():
9 loader = blueprint.jinja_loader
10 if loader is not None:
11 yield blueprint, loader