MCPcopy
hub / github.com/pallets/jinja / list_templates

Method list_templates

src/jinja2/loaders.py:560–565  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

558 raise TemplateNotFound(name) from e
559
560 def list_templates(self) -> t.List[str]:
561 result = []
562 for prefix, loader in self.mapping.items():
563 for template in loader.list_templates():
564 result.append(prefix + self.delimiter + template)
565 return result
566
567
568class ChoiceLoader(BaseLoader):

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.80
list_templatesMethod · 0.45

Tested by

no test coverage detected