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

Method get_source

deps/v8/third_party/jinja2/loaders.py:416–422  ·  view source on GitHub ↗
(
        self, environment: "Environment", template: str
    )

Source from the content-addressed store, hash-verified

414 self.mapping = mapping
415
416 def get_source(
417 self, environment: "Environment", template: str
418 ) -> t.Tuple[str, None, t.Callable[[], bool]]:
419 if template in self.mapping:
420 source = self.mapping[template]
421 return source, None, lambda: source == self.mapping.get(template)
422 raise TemplateNotFound(template)
423
424 def list_templates(self) -> t.List[str]:
425 return sorted(self.mapping)

Callers

nothing calls this directly

Calls 2

TemplateNotFoundClass · 0.70
getMethod · 0.65

Tested by

no test coverage detected