0
Follow
0
View

How do I make a clickable image in Clojure with Hiccup

dym7219 注册会员
6 days ago

Img is element inside a, not attribute of a, so use square brackets:

[:a.navbar-item
           {:href "/"}
           [:img {:src "/img/logo.png"
                  :width 70
                  :height 50}]]

About the Author

Question Info

Publish Time
6 days ago
Update Time
6 days ago