Module

cli.templates.portfolio.template

Portfolio site template.

Creates a simple portfolio with home, about, projects, and contact pages. Uses light token substitution to inject the current date into example project pages.

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}}placeholders resolved.

_create_portfolio_template
Construct the portfolio template definition.
0 SiteTemplate
def _create_portfolio_template() -> SiteTemplate

Construct the portfolio template definition.

Returns

SiteTemplate

A :class:SiteTemplatefor a personal portfolio site.