Liking cljdoc? Tell your friends :D

hx.utils


camel-caseclj/s

(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.
sourceraw docstring

camel-case-keysclj/s

(camel-case-keys m)

Recursively transforms all map keys into camel case.

Recursively transforms all map keys into camel case.
sourceraw docstring

clj->propscljs

(clj->props props)
source

join-classesclj/s

(join-classes classes)

Join the classes with a whitespace.

Join the `classes` with a whitespace.
sourceraw docstring

join-classes-jsclj/s≠

(join-classes-js)
(join-classes-js & xs)
clj

Joins strings space separated

Joins strings space separated
source (clj)source (cljs)raw docstring

reactify-propsclj/s

(reactify-props attrs)

Converts a HTML attribute map to react (class -> className), camelCases :style.

Converts a HTML attribute map to react (class -> className), camelCases :style.
sourceraw docstring

reactify-props-kvclj/smultimethod

source

shallow-clj->jsclj/s≠

(shallow-clj->js x & {:keys [keyword-fn] :or {keyword-fn name} :as options})
cljs

Shallowly transforms ClojureScript values to JavaScript. sets/vectors/lists become Arrays, Keywords and Symbol become Strings, Maps become Objects. Arbitrary keys are encoded to by key->js. Options is a key-value pair, where the only valid key is :keyword-fn, which should point to a single-argument function to be called on keyword keys. Default to name.

Shallowly transforms ClojureScript values to JavaScript.
sets/vectors/lists become Arrays, Keywords and Symbol become Strings,
Maps become Objects. Arbitrary keys are encoded to by `key->js`.
Options is a key-value pair, where the only valid key is
:keyword-fn, which should point to a single-argument function to be
called on keyword keys. Default to `name`.
source (clj)source (cljs)raw docstring

shallow-js->cljcljs

(shallow-js->clj x)
(shallow-js->clj x & opts)
source

styles->jscljs

(styles->js props)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close