Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn list-item
- ;; three arguments
- ([class content href]
- ;; define an <a> inside the list
- [:li {:class class}
- [:a (merge {:href href}
- (when (= "osx" client)
- {:target "_blank"})) content]])
- ;; two arguments
- ([class content]
- ;;will only define a list item
- [:li {:class class} content]))
Add Comment
Please, Sign In to add comment