package web import ( "log" root "marmic/servicetrade-toolbox" "net/http" ) func DashboardHandler(w http.ResponseWriter, r *http.Request) { tmpl := root.WebTemplates data := map[string]interface{}{ "Title": "Dashboard", } // Always render the full layout with dashboard content if err := tmpl.ExecuteTemplate(w, "layout.html", data); err != nil { log.Printf("Template execution error: %v", err) http.Error(w, "Internal Server Error", http.StatusInternalServerError) return } }