by HexDecOctBin · 1y ago · 0 comments
(html
(head
(title "Hello!"))
(body
(div
(p
"This is an example of a hyperlink: "
(a "Example" :href "https://example.org/")))))tl;dr first element of the vector is a tag, second is a map of attributes test are children nodes:
[:h1 {:font-size "2em" :font-weight bold} "General Kenobi, you are a bold one"]
https://github.com/clj-commons/hickory
i feel hiccup indexed based magic is a common design pattern you see in early Clojure and its less common now (id say hiccup is the exception that lives on)