Created
February 3, 2009 03:09
-
-
Save pierrel/57270 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
(def people-view | |
(html [:html | |
[:h1 "People"] | |
[:ul | |
(let [rows '({:id 1 :name "johanna"} {:id 2 :name "vincent"})] | |
(reduce html | |
(map (fn [hash] [:li (str (get hash :id) " - " (get hash :name))]) rows)))]])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment