feat(go): M6.1 — template skeleton, embed.FS, HTML routes #26
Reference in New Issue
Block a user
Delete Branch "feat/go-m6-1-template-skeleton"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
go/internal/web/templates/:base.tmpllayout +partials/nav.tmpl(three-tier nav with active-link highlighting),partials/footer.tmpl, and stub pages for all five routes.go/internal/web/static/css/app.css: terminal-green-on-black theme extracted from Pythontemplates/adults.htmlonce — shared by all Go pages via<link>.go/internal/web/assets.go://go:embed templates staticfor single-binary deployment.go/internal/web/render.go:NewRenderer()parses a fresh*template.Templateper page at startup; parse failure aborts boot.go/internal/web/html_handler.go:HTMLHandlerwith one method per route.go/internal/web/server.go: dropshelloHandler;GET /{$}redirects to/adults; HTML +/static/routes added alongside the existing/api/*routes.Test plan
make go-testgreen (all packages, including newwebpackage smoke test)make go-buildgreen,make go-lintcleanmake web-go, openhttp://localhost:8080/adults— terminal-green theme, three-tier nav, "Coming in M6.2" placeholder, footer with build metaclass="active"per page)curl -sI localhost:8080/static/css/app.css→ 200