Skip to content
Permalink
f2f4229
Feb 23, 2010
|
; An example of inserting the linter between each component to ensure |
|
; compliance to the Ring spec. |
|
|
|
(ns ring.example.linted |
|
(:use (ring.handler dump) |
|
(ring.middleware stacktrace file file-info reload lint) |
|
(ring.adapter jetty))) |
|
|
|
(def app |
|
(-> handle-dump |
|
wrap-lint |
|
wrap-stacktrace |
|
wrap-lint |
|
wrap-file-info |
|
wrap-lint |
|
(wrap-file "example/public") |
|
wrap-lint |
|
(wrap-reload '(ring.handler.dump)) |
|
wrap-lint)) |
|
|
|
(run-jetty app {:port 8080}) |
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.