About this demo
This site is the template-demo repo — the starter that kiri create scaffolds from. Every page is a small, real example of one Kirigami feature.
How a page becomes HTML
- The PHPDOC block is parsed; each annotation becomes a PHP variable.
- Values ending in
.yaml/.json/.mdare loaded as data. _layout/header.phpis included, then the page body, then_layout/footer.php.- Registered tags run on the assembled HTML —
<markdown>,<img asset>,<swatches>. post_renderhooks fire, and the.htmlfile is written.
This page is pure Markdown. Its _index.php is nothing but a PHPDOC block with @content _about.md and @indent 4: the PHP is never executed for output, so the layout just wraps the converted file.
Stack
- Kirigami — the generator
- @kirigami/canva — shared Sass tokens and the folded-paper logo
- esbuild + Dart Sass — the two build tasks
- @kirigami/kiribuild — deploys on push to
main
TIP
Run npx kiri watch and point VS Code Live Server at src/ for a live preview.