Created
February 18, 2016 05:09
-
-
Save alecklandgraf/eefd590555211ce50f34 to your computer and use it in GitHub Desktop.
home-page
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
(defn home-page [request] | |
(let [flash (:flash request)] | |
(layout/render | |
"home.html" | |
(merge {:messages (db/get-messages)} | |
(select-keys flash [:name :message :errors])))) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment