Guide for building Go web applications with the structpages framework (struct-based routing + templ + HTMX). Use when writing routes, pages, page groups, Props methods, handler methods (ServeHTTP), page components, partials, HTMX partial rendering and nested swap levels, URL generation (URLFor/ID/IDTarget), RenderTarget/RenderComponent patterns, or middleware with structpages. Also use when the user asks about structpages patterns, conventions, vocabulary, or debugging structpages issues.
2026-06-11