Created
December 21, 2011 15:01
-
-
Save misfo/1506329 to your computer and use it in GitHub Desktop.
wrap-session not working in a nested Moustache app
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
(ns tache-middlewares.core | |
(:use [net.cgrand.moustache] | |
[ring.handler.dump] | |
[ring.middleware.session])) | |
(def handler (app | |
["supa" &] (app | |
wrap-session | |
["set"] (fn [req] {:status 200, :body "set", :session {:thing 1}}) | |
["dump"] handle-dump))) |
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
(ns tache-middlewares.core | |
(:use [net.cgrand.moustache] | |
[ring.handler.dump] | |
[ring.middleware.session])) | |
(def handler (app | |
wrap-session | |
["supa" &] (app | |
["set"] (fn [req] {:status 200, :body "set", :session {:thing 1}}) | |
["dump"] handle-dump))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment