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

Method get_source

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

Source from the content-addressed store, hash-verified

500 return loader, name
501
502 def get_source(
503 self, environment: "Environment", template: str
504 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
505 loader, name = self.get_loader(template)
506 try:
507 return loader.get_source(environment, name)
508 except TemplateNotFound as e:
509 # re-raise the exception with the correct filename here.
510 # (the one that includes the prefix)
511 raise TemplateNotFound(template) from e
512
513 @internalcode
514 def load(

Callers

nothing calls this directly

Calls 3

get_loaderMethod · 0.95
TemplateNotFoundClass · 0.70
get_sourceMethod · 0.45

Tested by

no test coverage detected