Method: flask.templating.DispatchingJinjaLoader._get_source_fast
Calls: 32, Exceptions: 5, Paths: 3Back
Path 1: 27 calls (0.84)
Environment (27)
'template_filter.html' (9) 'template_test.html' (9) 'simple_template.html' (3) 'nested/nested.txt' (1) 'context_template.html' (1) 'escaping_template....
tuple (27)
1def _get_source_fast(
2 self, environment: Environment, template: str
3 ) -> tuple[str, str | None, t.Callable | None]:
4 for _srcobj, loader in self._iter_loaders(template):
5 try:
6 return loader.get_source(environment, template)
7 except TemplateNotFound:
8 continue
9 raise TemplateNotFound(template)
Path 2: 3 calls (0.09)
Environment (3)
'frontend/index.html' (1) 'admin/index.html' (1) './admin/index.html' (1)
tuple (3)
TemplateNotFound (3)
1def _get_source_fast(
2 self, environment: Environment, template: str
3 ) -> tuple[str, str | None, t.Callable | None]:
4 for _srcobj, loader in self._iter_loaders(template):
5 try:
6 return loader.get_source(environment, template)
7 except TemplateNotFound:
8 continue
9 raise TemplateNotFound(template)
Path 3: 2 calls (0.06)
Environment (2)
'missing.html' (1) 'no_template.xml' (1)
TemplateNotFound (2)
1def _get_source_fast(
2 self, environment: Environment, template: str
3 ) -> tuple[str, str | None, t.Callable | None]:
4 for _srcobj, loader in self._iter_loaders(template):
5 try:
6 return loader.get_source(environment, template)
7 except TemplateNotFound:
8 continue
9 raise TemplateNotFound(template)