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

Method list_templates

src/jinja2/loaders.py:101–105  ·  view source on GitHub ↗

Iterates over all templates. If the loader does not support that it should raise a :exc:`TypeError` which is the default behavior.

(self)

Source from the content-addressed store, hash-verified

99 raise TemplateNotFound(template)
100
101 def list_templates(self) -> t.List[str]:
102 """Iterates over all templates. If the loader does not support that
103 it should raise a :exc:`TypeError` which is the default behavior.
104 """
105 raise TypeError("this loader cannot iterate over all templates")
106
107 @internalcode
108 def load(

Callers 5

list_templatesMethod · 0.45
list_templatesMethod · 0.45
test_package_dir_listFunction · 0.45
test_package_file_listFunction · 0.45
test_package_zip_listFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_package_dir_listFunction · 0.36
test_package_file_listFunction · 0.36
test_package_zip_listFunction · 0.36