From c7971eb297b50cf3b0b2c713320a6e68b288499a Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Sun, 21 Jun 2026 07:31:18 -0400 Subject: [PATCH] docs: add mustache templating design spec --- .../2026-06-20-mustache-templating-design.md | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 docs/specs/2026-06-20-mustache-templating-design.md 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 `