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

Method get_template_path

tornado/web.py:1528–1534  ·  view source on GitHub ↗

Override to customize template path for each handler. By default, we use the ``template_path`` application setting. Return None to load templates relative to the calling file.

(self)

Source from the content-addressed store, hash-verified

1526 return self.application.settings["login_url"]
1527
1528 def get_template_path(self) -> Optional[str]:
1529 """Override to customize template path for each handler.
1530
1531 By default, we use the ``template_path`` application setting.
1532 Return None to load templates relative to the calling file.
1533 """
1534 return self.application.settings.get("template_path")
1535
1536 @property
1537 def xsrf_token(self) -> bytes:

Callers 1

render_stringMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected