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
123'>123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165