Method: flask.templating.DispatchingJinjaLoader.get_source
Calls: 33, Exceptions: 3, Paths: 2Back
Path 1: 32 calls (0.97)
Environment (32)
'template_filter.html' (9) 'template_test.html' (9) 'simple_template.html' (3) 'frontend/index.html' (1) 'admin/index.html' (1) './admin/index.html' (...
tuple (30) None (2)
TemplateNotFound (2)
1def get_source( # type: ignore
2 self, environment: Environment, template: str
3 ) -> tuple[str, str | None, t.Callable | None]:
4 if self.app.config["EXPLAIN_TEMPLATE_LOADING"]:
5 return self._get_source_explained(environment, template)
6 return self._get_source_fast(environment, template)
Path 2: 1 calls (0.03)
Environment (1)
'missing_template.html' (1)
None (1)
TemplateNotFound (1)
1def get_source( # type: ignore
2 self, environment: Environment, template: str
3 ) -> tuple[str, str | None, t.Callable | None]:
4 if self.app.config["EXPLAIN_TEMPLATE_LOADING"]:
5 return self._get_source_explained(environment, template)
6 return self._get_source_fast(environment, template)