clojure-czech

rarous 2015-09-24T04:49:32.000087Z

Vypadá to nějak takhle :simple_smile:

(ns rarous.web)
(defmulti handler identity)

(ns project.web
  (:require [domkm.silk.serve :as serve]))
(def routes [[:index [[]]]])
(def app (-> (serve/ring-handler routes rarous.web/handler) (comment “middlewares")))
(defmethod rarous.web/handler :index [_] (fn [r] (comment “render view")))