(
self,
environment: "Environment",
name: str,
globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
)
| 562 | |
| 563 | @internalcode |
| 564 | def load( |
| 565 | self, |
| 566 | environment: "Environment", |
| 567 | name: str, |
| 568 | globals: t.Optional[t.MutableMapping[str, t.Any]] = None, |
| 569 | ) -> "Template": |
| 570 | for loader in self.loaders: |
| 571 | try: |
| 572 | return loader.load(environment, name, globals) |
| 573 | except TemplateNotFound: |
| 574 | pass |
| 575 | raise TemplateNotFound(name) |
| 576 | |
| 577 | def list_templates(self) -> t.List[str]: |
| 578 | found = set() |
nothing calls this directly
no test coverage detected