(as-str & xs)
Converts its arguments into a string using to-str.
Converts its arguments into a string using to-str.
(attr-pattern attr)
Returns a regular expression that matches the HTML attribute attr
and it's value.
Returns a regular expression that matches the HTML attribute `attr` and it's value.
(camel-case k)
Returns camel case version of the key, e.g. :http-equiv becomes :httpEquiv.
Returns camel case version of the key, e.g. :http-equiv becomes :httpEquiv.
(camel-case-keys m)
Recursively transforms all map keys into camel case.
Recursively transforms all map keys into camel case.
(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.
(html-to-dom-attrs attrs)
Converts all HTML attributes to their DOM equivalents.
Converts all HTML attributes to their DOM equivalents.
(join-classes classes)
Join the classes
with a whitespace.
Join the `classes` with a whitespace.
(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.
(normalize-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].
(react-fn tag)
Same as react-symbol
but wrap input and text elements.
Same as `react-symbol` but wrap input and text elements.
(react-symbol tag)
Returns the React function to render tag
as a symbol.
Returns the React function to render `tag` as a symbol.
(strip-attr s attr)
Strip the HTML attribute attr
and it's value from the string s
.
Strip the HTML attribute `attr` and it's value from the string `s`.
(strip-css s)
Strip the # and . characters from the beginning of s
.
Strip the # and . characters from the beginning of `s`.
(strip-outer s)
Strip the outer HTML tag from the string s
.
Strip the outer HTML tag from the string `s`.
(to-str x)
Convert a value into a string.
Convert a value into a string.
(to-uri x)
Convert a value into a URI.
Convert a value into a URI.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close