Liking cljdoc? Tell your friends :D

malli-forms.util

Mostly helpers for producing markup or munging HTML

Mostly helpers for producing markup or munging HTML
raw docstring

b64->plantumlclj

(b64->plantuml in)

Converts a string or array of chars/bytes from base64 to plantuml base64

Converts a string or array of chars/bytes from base64 to plantuml base64
raw docstring

b64->plantuml-mapclj


b64-mapclj


base64clj

(base64 string)

Encode string into base64

Encode string into base64
raw docstring

defaultclj

(default m k v)

If k is not set in m, set it to v.

If `k` is not set in `m`, set it to `v`.
raw docstring

default-inclj

(default-in m path v)

If path has no value set in nested data structure m, sets it to v.

If `path` has no value set in nested data structure `m`, sets it to `v`.
raw docstring

encoded-variantsclj

(encoded-variants v)

For a given candidate value, get a collection of expected strings that value may be encoded as

For a given candidate value, get a collection of expected strings that value
may be encoded as
raw docstring

generous-decodeclj

(generous-decode candidates s)

Takes a (potentially URL-encoded) string and a collection of possible options to decode to, such as keywords, strings, symbols, and numbers, and returns the option the string decodes to, when possible

Takes a (potentially URL-encoded) string and a collection of possible
options to decode to, such as keywords, strings, symbols, and numbers, and
returns the option the string decodes to, when possible
raw docstring

generous-decoderclj

(generous-decoder candidates)

Get a map of str-value->[candidate-1, ...] for a collection of candidates

Get a map of str-value->[candidate-1, ...] for a collection of candidates
raw docstring

intersect-mapsclj

(intersect-maps m)
(intersect-maps m1 m2)
(intersect-maps m1 m2 & maps)

Returns a map that contains only those entries that are present in every map provided.

Returns a map that contains only those entries that are present in every
map provided.
raw docstring

labelclj

(label spec)

When appropriate, get a best-guess label for a spec. Assumes :name is set correctly.

When appropriate, get a best-guess label for a spec. Assumes :name is set
correctly.
raw docstring

Labeledcljprotocol

label*clj

(label* this)

Get a String label for an object, or nil

Get a String label for an object, or nil

path->labelclj

(path->label path)

Takes a path to a field in a nested data structure and attempts to produce a human-readable label. Drops first item in path as it will be the data node

Takes a path to a field in a nested data structure and attempts to produce
a human-readable label. Drops first item in path as it will be the data node
raw docstring

path->nameclj

(path->name path)

Takes a path to a field in a nested data structure and produces a suitable HTML input name

Takes a path to a field in a nested data structure and produces a suitable
HTML input name
raw docstring

pathwalkclj

(pathwalk outer form)
(pathwalk inner outer form)
(pathwalk inner outer form path)

Walks form with outer and optional inner function. Calls (inner form path), then recursively walks result, then yields(outer result path)`

Walks form with outer and optional inner function.
Calls `(inner form path), then recursively walks result, then yields `(outer result path)`
raw docstring

PathWalkablecljprotocol

pathwalk*clj

(pathwalk* form inner outer path-to-form)

Replace subforms of form with (pathwalk inner outer subform path-to-subform), where path-to-subform is built from path-to-form

Replace subforms of form with (pathwalk inner outer subform path-to-subform),
where path-to-subform is built from path-to-form

props->attrsclj

(props->attrs {:keys [attributes required selected value] :as spec})

Convert field spec from a schema into an attribute map for an input

Convert field spec from a schema into an attribute map for an input
raw docstring

unqualifyclj

(unqualify kw)

:some/kw -> :kw

:some/kw -> :kw
raw docstring

update-in*clj

(update-in* m ks f & args)

Like clojure.core/update-in, but works with sets as well

Like clojure.core/update-in, but works with sets as well
raw docstring

url-decodeclj

(url-decode s)

URL-decode a string

URL-decode a string
raw docstring

url-encodeclj

(url-encode s)

URL-encode a string, including .

URL-encode a string, including .
raw docstring

value->labelclj

(value->label v)

Process a value into a form label

Process a value into a form label
raw docstring

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

× close