Skip to content

Commit

Permalink
Encourage var-quoted handler to match auto-reloading expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrossley3 committed Mar 14, 2013
1 parent b316fe2 commit f1ba61a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/org/web.org
Expand Up @@ -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

Expand Down Expand Up @@ -241,7 +241,7 @@

(web/start
(ring-session/wrap-session
my-handler
#'my-handler
{:store (immutant-session/servlet-store)}))
#+end_src

Expand Down

0 comments on commit f1ba61a

Please sign in to comment.