Created
December 23, 2011 06:12
-
-
Save Raynes/1513344 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(require '[noir.session :as session]) | |
(use 'noir.core) | |
(use 'noir.server) | |
(defpage "/put" [] (session/flash-put! :foo "1") (pr-str @session/*noir-flash*)) | |
(defpage "/take" [] (prn (session/flash-get :foo)) (pr-str @session/*noir-flash*)) | |
(def s (start 8080)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment