Permalink
Browse files

Encourage var-quoted handler to match auto-reloading expectations

  • Loading branch information...
1 parent b316fe2 commit f1ba61a4b6d42f001c68812f975450a1e58230e6 @jcrossley3 jcrossley3 committed Mar 14, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 docs/src/org/web.org
View
12 docs/src/org/web.org
@@ -126,16 +126,16 @@
;; this handler will receive any request that the app
;; receives at /my-app/* *except* for anything captured by another
;; sub-context.
- (web/start my-root-handler)
+ (web/start #'my-root-handler)
;; handle requests at the /somewhere sub-context.
;; this handler will receive any request that the app
;; receives at /my-app/somewhere/*.
- (web/start "/somewhere" my-other-handler)
+ (web/start "/somewhere" #'my-other-handler)
- ;; If you want to see your changes immediately while in a REPL, pass a
- ;; var-quoted handler. You only need to explicitly set :auto-reload?
- ;; when not in development mode.
+ ;; If you want to see your changes immediately while in a REPL, be
+ ;; sure to pass a var-quoted handler. You only need to explicitly
+ ;; set :auto-reload? when not in development mode.
(web/start #'your-handler :auto-reload? true)
#+end_src
@@ -241,7 +241,7 @@
(web/start
(ring-session/wrap-session
- my-handler
+ #'my-handler
{:store (immutant-session/servlet-store)}))
#+end_src

0 comments on commit f1ba61a

Please sign in to comment.