Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (18 sloc) 0.491 kb
cbeebac @mmcgrana Initial refactor towards 0.1.
authored
1 ; An example of inserting the linter between each component to ensure
2 ; compliance to the Ring spec.
3
c5eceba @mmcgrana Fixes to make examples work.
authored
4 (ns ring.example.linted
cbeebac @mmcgrana Initial refactor towards 0.1.
authored
5 (:use (ring.handler dump)
6 (ring.middleware stacktrace file file-info reload lint)
7 (ring.adapter jetty)))
8
9 (def app
10 (-> handle-dump
11 wrap-lint
12 wrap-stacktrace
13 wrap-lint
14 wrap-file-info
15 wrap-lint
f2f4229 @mmcgrana Doc and example tweaks.
authored
16 (wrap-file "example/public")
cbeebac @mmcgrana Initial refactor towards 0.1.
authored
17 wrap-lint
f2f4229 @mmcgrana Doc and example tweaks.
authored
18 (wrap-reload '(ring.handler.dump))
19 wrap-lint))
cbeebac @mmcgrana Initial refactor towards 0.1.
authored
20
f2f4229 @mmcgrana Doc and example tweaks.
authored
21 (run-jetty app {:port 8080})
Something went wrong with that request. Please try again.