(
self, environment: "Environment", template: str
)
| 500 | return loader, name |
| 501 | |
| 502 | def get_source( |
| 503 | self, environment: "Environment", template: str |
| 504 | ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]: |
| 505 | loader, name = self.get_loader(template) |
| 506 | try: |
| 507 | return loader.get_source(environment, name) |
| 508 | except TemplateNotFound as e: |
| 509 | # re-raise the exception with the correct filename here. |
| 510 | # (the one that includes the prefix) |
| 511 | raise TemplateNotFound(template) from e |
| 512 | |
| 513 | @internalcode |
| 514 | def load( |
nothing calls this directly
no test coverage detected