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

Method get_source

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

Source from the content-addressed store, hash-verified

457 self.load_func = load_func
458
459 def get_source(
460 self, environment: "Environment", template: str
461 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
462 rv = self.load_func(template)
463
464 if rv is None:
465 raise TemplateNotFound(template)
466
467 if isinstance(rv, str):
468 return rv, None, None
469
470 return rv
471
472
473class PrefixLoader(BaseLoader):

Callers

nothing calls this directly

Calls 1

TemplateNotFoundClass · 0.70

Tested by

no test coverage detected