Example 10: Page Templates

This site was generated by SSI using the template field. A single template file produced all three product pages below — one per file in products/.

How It Works

The template field in a page step points to an HTML template. SSI scans the source directory and generates one output page per file found, substituting the template's content token with the processed file content.

A separate include step resolves product metadata (name, description, price) from a TOML file using per-page selection — each product page picks up the section matching its own filename.