Module

cli.templates.landing.template

Landing page template.

Scaffolds a marketing/landing site with a home page and common legal pages. Performs simple{{date}}substitution for stamped content.

Functions

_load_template_file
Load and lightly render a page from the ``pages/`` directory.
1 str
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'spages/directory.

Returns

str

File contents with{{date}}replaced by today's date.

_create_landing_template
Construct the landing page template definition.
0 SiteTemplate
def _create_landing_template() -> SiteTemplate

Construct the landing page template definition.

Returns

SiteTemplate

A :class:SiteTemplatefor a basic product landing site.