~subsetpark/urquh

urquh/main.janet -rw-r--r-- 346 bytes
1ed69c40 — Zach Smith Put link in sources 4 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(use osprey)

(import spork/temple)
(temple/add-loader)

(import /index)

(enable :static-files)

(GET "/"
     (def body @"")
     (with-dyns [:out body]
       (index/render))
     @{:status 200
       :body body
       :headers text/html})


(defn main [_ &opt port host]
  (default port 4000)
  (default host "0.0.0.0")
  (server port host))