(self)
| 110 | yield blueprint, loader |
| 111 | |
| 112 | def list_templates(self) -> list[str]: |
| 113 | result = set() |
| 114 | loader = self.app.jinja_loader |
| 115 | if loader is not None: |
| 116 | result.update(loader.list_templates()) |
| 117 | |
| 118 | for blueprint in self.app.iter_blueprints(): |
| 119 | loader = blueprint.jinja_loader |
| 120 | if loader is not None: |
| 121 | for template in loader.list_templates(): |
| 122 | result.add(template) |
| 123 | |
| 124 | return list(result) |
| 125 | |
| 126 | |
| 127 | def _render(app: Flask, template: Template, context: dict[str, t.Any]) -> str: |