MCPcopy Create free account
hub / github.com/nodejs/node / load

Method load

deps/v8/third_party/jinja2/loaders.py:564–575  ·  view source on GitHub ↗
(
        self,
        environment: "Environment",
        name: str,
        globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
    )

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

TemplateNotFoundClass · 0.70
loadMethod · 0.45

Tested by

no test coverage detected