Let there be light

This commit is contained in:
heyarne 2021-07-07 16:06:47 +02:00
commit 6b8a916cd5
6 changed files with 68 additions and 0 deletions

14
index.janet Normal file
View file

@ -0,0 +1,14 @@
(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!"]))}})