Skip to content

Instantly share code, notes, and snippets.

@ibdknox
Created June 28, 2011 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibdknox/1050697 to your computer and use it in GitHub Desktop.
Save ibdknox/1050697 to your computer and use it in GitHub Desktop.
defpartial with map
(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