From 932739c7762ce061f5a003284003d6571ad2afdf Mon Sep 17 00:00:00 2001 From: elioat Date: Sat, 9 Dec 2023 09:58:25 -0500 Subject: * --- bb/web/htmx.clj | 21 +++++++++++++++++++-- 1 file 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,15 +15,32 @@ (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 + "" + (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"}}}]) -- cgit 1.4.1-2-gfad0