diff --git a/docs/specs/2026-06-20-mustache-templating-design.md b/docs/specs/2026-06-20-mustache-templating-design.md new file mode 100644 index 0000000..3d1527c --- /dev/null +++ b/docs/specs/2026-06-20-mustache-templating-design.md @@ -0,0 +1,137 @@ +# Spine — Mustache Template Rendering + +Replaces inline HTML generation with Mustache template rendering via +`spine-render`. The mockup-A mustache template becomes the canonical +index page template. A view-model builder function transforms `spine-books` +plists into the template's expected context shape. + +## Architecture + +``` +spine.org ──→ [spine-books] ──→ book plists + │ + [spine-index-model] ──→ view model (ht) + │ +templates/index.mustache ───────────┼──→ [spine-render] ──→ HTML +``` + +## Template + +`spine-mockup-a-agenda.mustache` moves to `templates/index.mustache`. + +The template already contains: +- Pico CSS v2.1.1 CDN link +- Tabler Icons CDN link +- All custom CSS in `