longer developed) Pedestal Pedestal Pedestal is a set of libraries written in Clojure that aims to bring both the language and its principles (Simplicity, Power and Focus) to server-side development. pedestal-app
lein new pedestal-service hello-pedestal Generating a pedestal-service application called hello-pedestal. $ cd hello-pedestal/ lagenorhynque/hello-pedestal
org.eclipse.jetty.util.log - Logging initialized @16865ms to org.eclipse.jetty.util.log.Slf4jLog Creating your server... INFO org.eclipse.jetty.server.Server - jetty-9.4.10.v20180503; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e7 0a80934569428c; jvm 10.0.2+13 INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.Ser vletContextHandler@16768389{/,null,AVAILABLE} INFO o.e.jetty.server.AbstractConnector - Started ServerConnec tor@22531d51{HTTP/1.1,[http/1.1, h2c]}{localhost:8080} INFO org.eclipse.jetty.server.Server - Started @17463ms
their associated :get ha ;; ndlers. ;; The interceptors defined after the verb map (e.g., {:get home ;; -page} ;; apply to / and its children (/about). (def common-interceptors [(body-params/body-params) http/html-body]) ;; Tabular routes (def routes #{["/" :get (conj common-interceptors `home-page)] ["/about" :get (conj common-interceptors `about-page)]})