Created
June 28, 2011 08:06
-
-
Save ibdknox/1050697 to your computer and use it in GitHub Desktop.
defpartial with map
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
(defpartial post-item [{:keys [perma-link title md-body date tme]}] | |
[:li.post | |
[:h2 (link-to perma-link title)] | |
[:ul.datetime | |
[:li date] | |
[:li tme]] | |
[:div.content md-body]]) | |
(defpartial posts-list [items] | |
[:ul.posts | |
(map post-item items)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment