Fork me on GitHub
#duct
<
2017-12-07
>
snichme08:12:39

Nice talk on Duct, I like the mapping between a ataraxy route and a sql query

snichme08:12:00

And derived keywords are now more clear to me

weavejester11:12:42

Thanks! Hopefully the guide I’m writing should make up for the botched live coding.

snichme20:12:19

:duct.module/ataraxy
 {[:get "/"] [:index]
  [:get "/example"] [:example]}

 [:duct.handler.static/ok :secret-santa.handler/index]
 {:body #ig/ref :secret-santa.handler/index2}

 [:secret-santa.handler/static :secret-santa.handler/index2]
 {:filename "index"}
Doing this works, but I feel that maybe there is a simple way. What I want to do is to tell static/ok to render a file.

snichme20:12:10

In the code :secret-santa.handler/static just returns (io/resource (:filename options))