Example 11: Include Templates

Template Rendering

Template rendering expands one token into many rendered items — one per TOML section or directory subdirectory. Each item is processed through a template block, with that item's fields substituted as tokens.

Use Cases

Each card below was rendered from a different section of data/scenarios.toml through blocks/scenario-card.html. All cards share the same build date because the datetime step runs after the template step — every card contains a 🕐date token when it is first rendered, and those tokens resolve together in the subsequent datetime step.

FAQ List

Render frequently asked questions with answers — each question is a section with question and answer fields.

Source type: toml

Built: 2026-06-08

SSI example site — template rendering demo

Product Catalog

List products with name, price, and description — one TOML section per product, one card per section.

Source type: toml

Built: 2026-06-08

SSI example site — template rendering demo

Tag Cloud

Display tags with weight and color — directory subdirectories work when each tag has multiple associated files.

Source type: toml or directory

Built: 2026-06-08

SSI example site — template rendering demo

Team Directory

Show team members with role and bio — structured named data maps naturally to TOML sections.

Source type: toml

Built: 2026-06-08

SSI example site — template rendering demo