Fork me on GitHub
#pedestal
<
2017-08-11
>
souenzzo14:08:12

You may use interceptors http://pedestal.io/reference/interceptors For example ["/" :get [hiccup->html homapage] :route-name ::homepage]] Where: (def hiccup->html {:name ::hiccup->html :leave (fn [ctx] (update-in [:response :body] the-hiccup-fn))}) And homepage returns just the [:div "hiccup"] divs