Module template

Module template 

Source
Expand description

HTML template system for page generation.

Provides a lightweight template system using string interpolation rather than heavy template engines like Tera or Handlebars.

Structs§

Template
A simple template that supports variable interpolation.
TemplateContext
Template context with variables for interpolation.
TemplateRegistry
Registry of templates.

Enums§

TemplateError
Template rendering errors.

Constants§

DEFAULT_ARCHIVES_TEMPLATE
Default archives template (lists all posts grouped by year).
DEFAULT_BASE_TEMPLATE
Default base HTML template. Uses external CSS and JS files for better caching and smaller HTML files.
DEFAULT_CATEGORIES_INDEX_TEMPLATE
Default categories index template (lists all categories with counts).
DEFAULT_LIST_TEMPLATE
Default list template (for index pages).
DEFAULT_PAGE_TEMPLATE
Default page template (for standalone pages).
DEFAULT_POST_TEMPLATE
Default post template (for blog posts with metadata).
DEFAULT_REDIRECT_TEMPLATE
Default redirect template for URL aliases.
DEFAULT_SECTION_TEMPLATE
Default section template (lists all posts in a section).
DEFAULT_TAGS_INDEX_TEMPLATE
Default tags index template (lists all tags with counts).
DEFAULT_TAXONOMY_TEMPLATE
Default taxonomy term template (for tag/category pages).

Type Aliases§

Result
Result type for template operations.