(attributes attrs)Normalize the attrs of an element.
Normalize the `attrs` of an element.
(children x)Normalize the children of a HTML element.
Normalize the children of a HTML element.
(class class)Normalize class into a vector of classes.
Normalize `class` into a vector of classes.
(class-name x)(compact-map m)Removes all map entries where the value of the entry is empty.
Removes all map entries where the value of the entry is empty.
(element [tag & content])Ensure an element vector is of the form [tag-name attrs content].
Ensure an element vector is of the form [tag-name attrs content].
(map-lookup? x)Returns true if x is a map lookup form, otherwise false.
Returns true if `x` is a map lookup form, otherwise false.
(match-tag s)Match s as a CSS tag and return a vector of tag name, CSS id and
CSS classes.
Match `s` as a CSS tag and return a vector of tag name, CSS id and CSS classes.
(merge-with-class & maps)Like clojure.core/merge but concatenate :class entries.
Like clojure.core/merge but concatenate :class entries.
(strip-css s)Strip the # and . characters from the beginning of s.
Strip the # and . characters from the beginning of `s`.
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 |