(attrs hiccup)Returns the hiccup node's attributes
Returns the hiccup node's attributes
(children hiccup)Returns the hiccup node's children
Returns the hiccup node's children
(first-child node)Returns the hiccup node's first child
Returns the hiccup node's first child
(hiccup? x)Returns true when x is a hiccup form
Returns `true` when `x` is a hiccup form
(last-child node)Returns the hiccup node's last child
Returns the hiccup node's last child
(normalize-hiccup hiccup & [{:keys [strip-empty-attrs?] :as opt}])Normalizes hiccup by removing nil children, flattening children, parsing out id
and classes from the selector. Optionally elides empty attribute maps when
:strip-empty-attrs? is true.
Normalizes hiccup by removing nil children, flattening children, parsing out id and classes from the selector. Optionally elides empty attribute maps when `:strip-empty-attrs?` is `true`.
(select selector hiccup)Select nodes in hiccup matching the CSS selector
Select nodes in `hiccup` matching the CSS `selector`
(soft-join sep xs)Like clojure.string/join, except does not add sep between elements that end
start with it.
Like clojure.string/join, except does not add `sep` between elements that end start with it.
(text hiccup)Return only text from the hiccup structure; remove all tags and attributes
Return only text from the hiccup structure; remove all tags and attributes
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |