Let there be light
This commit is contained in:
commit
6b8a916cd5
6 changed files with 68 additions and 0 deletions
14
index.janet
Normal file
14
index.janet
Normal 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!"]))}})
|
||||
Loading…
Add table
Add a link
Reference in a new issue