wp-packages/internal
Ben Word 154cb2f376
Migrate templates from html/template to Jet v6
Replace Go's html/template with CloudyKit/jet/v6 for server-rendered
templates. Jet provides first-class parameterized blocks, template
inheritance via extends/yield, and C-like expressions — eliminating
the dict helper workarounds that html/template required for reusable
components.

Add components.html with four reusable Jet blocks:
- shell(command, variant, class) — copyable command boxes (replaces
  ~16 duplicated instances across 6 templates)
- notice(variant, class) with yield content — alert boxes with
  variant-based styling and content slots
- input(icon, name, ...) — form inputs with icon and keyboard hint
- pagination(pager, class) — pagination controls driven by
  pre-computed buildPagination() data

Key changes:
- templates.go: embed.FS loader for Jet, function registration via
  AddGlobal, buildPagination() helper, render() using VarMap
- handlers.go: simplified render calls (no more template combinations)
- router.go: *jet.Set replaces *templateSet
- All 13 templates converted to Jet syntax (extends/block/yield)
- Tailwind scanning unaffected (templates remain .html files)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 14:05:25 -05:00
..
app Add latest updates section to homepage (#80) 2026-03-29 15:39:56 -05:00
auth WP Packages rename (#42) 2026-03-19 11:50:12 -05:00
blog Add latest updates section to homepage (#80) 2026-03-29 15:39:56 -05:00
composer Incremental sync refactor (phase 2) (#90) 2026-04-03 10:11:18 -05:00
config Fix bucket 2026-03-19 12:37:00 -05:00
db Fix database is locked errors by tuning WAL checkpointing for Litestream (#94) 2026-04-04 10:37:27 -05:00
deploy WP Packages rename (#42) 2026-03-19 11:50:12 -05:00
http Migrate templates from html/template to Jet v6 2026-04-05 14:05:25 -05:00
integration Add metadata changes feed (#51) 2026-03-21 15:45:31 -05:00
og Fix OG image generation and simplify pipeline (#54) 2026-03-22 18:08:07 -05:00
packages Set content_changed_at on package deactivation and reactivation (#93) 2026-04-04 10:41:03 -05:00
packagist Replace shell smoke test with Go integration tests (#26) 2026-03-19 00:38:21 -04:00
repository Incremental sync refactor (phase 2) (#90) 2026-04-03 10:11:18 -05:00
telemetry Incremental sync refactor (phase 2) (#90) 2026-04-03 10:11:18 -05:00
testutil WP Packages rename (#42) 2026-03-19 11:50:12 -05:00
version version.Normalize: Accept pl pre-release suffix (#92) 2026-04-04 10:36:34 -05:00
wporg Pin dev-trunk to SVN revision and remove unpinnable dist (#69) 2026-03-26 12:10:49 -05:00