summaryrefslogtreecommitdiff
path: root/internal/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/handlers.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/internal/handlers.go b/internal/handlers.go
index c151904..92f7a4f 100644
--- a/internal/handlers.go
+++ b/internal/handlers.go
@@ -46,7 +46,8 @@ func (s *Server) handleHTMXPage(c echo.Context) error {
log.Printf("Error rendering content for %s: %v", page, err)
return c.String(
http.StatusInternalServerError,
- "Error loading content")
+ "Error loading content",
+ )
}
data := PageData {
@@ -79,10 +80,14 @@ func (s *Server) renderFullPage(c echo.Context, page, section string) error {
if err != nil {
log.Printf(
"Error rendering content for %s/%s: %v",
- page, section, err)
+ page,
+ section,
+ err,
+ )
return c.String(
http.StatusInternalServerError,
- "Error loading content")
+ "Error loading content",
+ )
}
data := PageData{
@@ -100,7 +105,9 @@ func (s *Server) renderContent(c echo.Context, page, section string) error {
if err != nil {
log.Printf("Error rendering content for %s/%s: %v", page, section, err)
return c.String(
- http.StatusInternalServerError, "Error loading content")
+ http.StatusInternalServerError,
+ "Error loading content",
+ )
}
return c.HTML(http.StatusOK, string(content))