diff --git a/handlers/routes.go b/handlers/routes.go index 228d7ba..c5b7869 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -7,9 +7,7 @@ import ( "nebula/views" ) -// RegisterRoutes sets up all HTTP routes for the application func RegisterRoutes(mux *http.ServeMux) { - // Welcome page routes mux.HandleFunc("GET /", handleWelcome) mux.HandleFunc("GET /welcome", handleWelcome) mux.HandleFunc("GET /welcome/step/{step}", handleWelcomeStep) @@ -30,8 +28,8 @@ func handleWelcomeStep(w http.ResponseWriter, r *http.Request) { // Check if this is an HTMX request if r.Header.Get("HX-Request") == "true" { - // Return only the step content fragment - views.WelcomeStepContent(step).Render(r.Context(), w) + // Return step content with OOB stepper update (HTMX 4 pattern) + views.WelcomeStepWithStepper(step).Render(r.Context(), w) return } diff --git a/layouts/base.templ b/layouts/base.templ index ce0cc18..fa226f3 100644 --- a/layouts/base.templ +++ b/layouts/base.templ @@ -8,8 +8,8 @@ templ Base(title string) {