clj-http-server-template/resources/clj/new/http_server_template/views/components/page.clj

17 lines
475 B
Clojure

(ns {{namespace}}.views.components.page
(:require
[hiccup.page :refer [html5 include-css include-js]]))
(defn page
[title & body]
(html5
[:head
[:meta {:charset "UTF-8"}]
[:meta {:content "width=device-width, initial-scale=1", :name "viewport"}]
(include-css "/css/main.css")
(include-css "https://fonts.googleapis.com/css?family=Bricolage+Grotesque")
(include-js "https://unpkg.com/htmx.org@2.0.4")
[:title title]]
[:body
body]))