Created
January 27, 2013 18:53
-
-
Save weavejester/4649745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(declare ^:dynamic *user*) | |
(defn wrap-user [handler] | |
(fn [request] | |
(binding [*user* (get-user request)] | |
(handler request)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment