about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--bb/web/htmx.clj21
1 files changed, 19 insertions, 2 deletions
diff --git a/bb/web/htmx.clj b/bb/web/htmx.clj
index 3294e2d..c534dd1 100644
--- a/bb/web/htmx.clj
+++ b/bb/web/htmx.clj
@@ -15,16 +15,33 @@
    (h/html
     [:head
      [:meta {:charset "UTF-8"}]
-     [:title "Babashka"]]
+     [:title "Babashka go brrr"]]
     [:body
      [:section.main
       [:header.header
-       [:h1 "hullo, frodo!"]]]])))
+       [:h1 "Hullo, Frodo!"]]]])))
+
+(defn about []
+  (list
+   "<!DOCTYPE html>"
+   (h/html
+    [:head
+     [:meta {:charset "UTF-8"}]
+     [:title "Aboot"]]
+    [:body
+     [:section.main
+      [:header.header
+       [:h1 "Don't touch them Frodo!"]]]])))
 
 (def routes [{:path     "/"
               :method   :get
               :response {:body (index)
                          :status 200
+                         :headers {"Content-Type" "text/html; charset=utf-8"}}}
+             {:path     "/about"
+              :method   :get
+              :response {:body (about)
+                         :status 200
                          :headers {"Content-Type" "text/html; charset=utf-8"}}}])
 
 ;; Server