Skip to content

Commit

Permalink
Fixes to make examples work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgrana committed Jul 12, 2009
1 parent e6abe13 commit c5eceba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First clone the Ring source and download Ring's dependencies:

To see a live "Hello World" Ring app, run:

java -Djava.ext.dirs=deps clojure.main src/ring/examples/hello_world.clj
java -Djava.ext.dirs=deps clojure.main src/ring/example/hello_world.clj

Now visit @http://localhost:8080/@ in your browser; the Ring app will respond to your request with a simple HTML page indicating the time of day.

Expand Down
4 changes: 2 additions & 2 deletions src/ring/example/linted.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; An example of inserting the linter between each component to ensure
; compliance to the Ring spec.

(ns ring.examples.linted
(ns ring.example.linted
(:use (ring.handler dump)
(ring.middleware stacktrace file file-info reload lint)
(ring.adapter jetty)))
Expand All @@ -13,7 +13,7 @@
wrap-lint
wrap-file-info
wrap-lint
(wrap-file "src/ring/examples/public")
(wrap-file "src/ring/example/public")
wrap-lint
(wrap-reload '(ring.dump)
wrap-lint)))
Expand Down
8 changes: 4 additions & 4 deletions src/ring/example/wrapping.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(:use (ring.handler dump)
(ring.middleware stacktrace file-info file)
(ring.adapter jetty)
(clojure.contrib fcase)))
(clojure.contrib except)))

(defn wrap-error [app]
(fn [req]
Expand All @@ -14,9 +14,9 @@

(def app
(-> handle-dump
wrap-stacktrace
wrap-error
(wrap-file "src/ring/example/public")
wrap-file-info
(wrap-file "src/ring/examples/public")
wrap-error))
wrap-stacktrace))

(run-jetty app {:port 8080})
2 changes: 1 addition & 1 deletion src/ring/handler/dump.clj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
:headers {"Content-Type" "text/html"}
:body (template req)})

(def css "
(def #^{:private true} css "
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
Expand Down
2 changes: 1 addition & 1 deletion src/ring/middleware/stacktrace.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
(catch Exception e
(response req e)))))

(def css "
(def #^{:private true} css "
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
Expand Down

0 comments on commit c5eceba

Please sign in to comment.