Permalink
Browse files

Deprecated the wrap! macro

  • Loading branch information...
1 parent d636bfd commit cbe083171e28a13ef4347978b2106366463eed41 @weavejester committed Dec 25, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/compojure/core.clj
@@ -122,12 +122,14 @@
kw)))
(defmacro wrap!
- "Wrap a handler in middleware functions. Uses the same syntax as the ->
+ "DEPRECATED: Use '->' instead.
+ Wrap a handler in middleware functions. Uses the same syntax as the ->
macro. Additionally, keywords may be used to denote a leading 'wrap-'.
e.g.
(wrap! foo (:session cookie-store))
=> (wrap! foo (wrap-session cookie-store))
=> (def foo (wrap-session foo cookie-store))"
+ {:deprecated "0.6.0"}
[handler & funcs]
(let [funcs (map keyword->middleware funcs)]
`(alter-var-root

0 comments on commit cbe0831

Please sign in to comment.