package baseview import "strconv" // Original Error template (keep for backwards compatibility where needed) templ ErrorPage(code int, err string, message string) { @ErrorPageWithDetails(code, err, message, "") } // Enhanced Error template with optional details section templ ErrorPageWithDetails(code int, err string, message string, details string) { @Layout(err) {
{ err }
// Always show the message from hws.HWSError.Message{ message }
// Conditionally show technical details in dropdown if details != "" {{ details }