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.
- Template
Context - Template context with variables for interpolation.
- Template
Registry - Registry of templates.
Enums§
- Template
Error - 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.