Guest User

Untitled

a guest
Sep 9th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn list-item
  2.   ;; three arguments
  3.   ([class content href]
  4.    ;; define an <a> inside the list
  5.    [:li {:class class}
  6.         [:a (merge {:href href}
  7.                    (when (= "osx" client)
  8.                      {:target "_blank"})) content]])
  9.   ;; two arguments
  10.   ([class content]
  11.    ;;will only define a list item
  12.    [:li {:class class} content]))
Add Comment
Please, Sign In to add comment