Documentation

Build fast static sites with PHP.

Write content in Djot, build layouts with Sugar templates, and ship a folder of plain HTML.

Write in Djot

Clean, predictable markup with built-in frontmatter. Fully-specified grammar with consistent rendering across all tools.

Sugar templates

A PHP template engine built for composition. Layout inheritance, reusable components with slots, attribute-based directives, and automatic context-aware escaping — all in plain PHP files.

Optional Vite

Add CSS and JS asset bundling when you need it. Skip it when you don't. One flag: --vite.

Start a new project in seconds

Run a few commands and start developing locally.

Generated structure

  • content/index.dj
  • templates/page.sugar.php
  • templates/layout/page.sugar.php
  • glaze.neon
  • vite.config.js
  • package.json