14 lines
377 B
Janet
14 lines
377 B
Janet
(import janet-html :as html)
|
|
|
|
(defn as-html [h]
|
|
(html/encode (html/doctype :html5) h))
|
|
|
|
(bagatto/set-output-dir! "site")
|
|
|
|
(def img-path-copier (bagatto/path-copier "static"))
|
|
|
|
(def data {:dogs {:src (bagatto/* "images/*")
|
|
:attrs bagatto/parse-base}})
|
|
|
|
(def site {:index {:dest "index.html"
|
|
:out (fn [_] (as-html [:h1 "Hello World!"]))}})
|