Skip to content

Templates

templates

get_template(name: str, relative_to: str | ModuleType = __name__) -> string.Template

Retrieve the template by name

page_html(content: str, *, title: str = '') -> str

Wrap the content of the page as proper HTML for displaying.