MCPcopy Create free account
hub / github.com/EasyIME/PIME / load

Method load

python/python3/tornado/template.py:441–447  ·  view source on GitHub ↗

Loads a template.

(self, name: str, parent_path: Optional[str] = None)

Source from the content-addressed store, hash-verified

439 raise NotImplementedError()
440
441 def load(self, name: str, parent_path: Optional[str] = None) -> Template:
442 """Loads a template."""
443 name = self.resolve_path(name, parent_path=parent_path)
444 with self.lock:
445 if name not in self.templates:
446 self.templates[name] = self._create_template(name)
447 return self.templates[name]
448
449 def _create_template(self, name: str) -> Template:
450 raise NotImplementedError()

Callers 15

render_stringMethod · 0.45
_get_ancestorsMethod · 0.45
find_named_blocksMethod · 0.45
generateMethod · 0.45
test_includeMethod · 0.45
test_extendsMethod · 0.45
test_relative_loadMethod · 0.45
test_custom_namespaceMethod · 0.45
test_non_ascii_nameMethod · 0.45
load_generateMethod · 0.45

Calls 2

resolve_pathMethod · 0.95
_create_templateMethod · 0.95