MCPcopy
hub / github.com/tornadoweb/tornado / load

Method load

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.80
_get_ancestorsMethod · 0.80
find_named_blocksMethod · 0.80
generateMethod · 0.80
test_includeMethod · 0.80
test_extendsMethod · 0.80
test_relative_loadMethod · 0.80
test_custom_namespaceMethod · 0.80
test_non_ascii_nameMethod · 0.80
load_generateMethod · 0.80

Calls 2

resolve_pathMethod · 0.95
_create_templateMethod · 0.95