Functions
_load_template_file
Load and lightly render a page from the ``pages/`` directory.
_load_template_file
def _load_template_file(relative_path: str) -> str
Load and lightly render a page from thepages/directory.
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
relative_path |
str |
— | Path inside this template's |
Returns
File contents withstr
— {{date}}replaced by today's date.
_create_landing_template
Construct the landing page template definition.
_create_landing_template
def _create_landing_template() -> SiteTemplate
Construct the landing page template definition.
Returns
A :class:SiteTemplate
— SiteTemplatefor a basic product landing site.