Liking cljdoc? Tell your friends :D

c3kit.apron.schema.presentations

Standard presentation lexes. Each lex is its own var for à-la-carte use; default-presentations bundles them as a {name → lex} map that c3kit.apron.schema merges into the default lexicon at its load. This namespace is pure data — it does not require c3kit.apron.schema.

A presentation lex has the shape {:present fn} — no :message, since presentations don't fail in the lex-error sense; they just transform. If a present-fn throws, that's a bug at the call site; exceptions propagate rather than being captured as field errors.

Standard presentation lexes. Each lex is its own var for à-la-carte
use; default-presentations bundles them as a {name → lex} map that
c3kit.apron.schema merges into the default lexicon at its load.
This namespace is pure data — it does not require c3kit.apron.schema.

A presentation lex has the shape {:present fn} — no :message, since
presentations don't fail in the lex-error sense; they just transform.
If a present-fn throws, that's a bug at the call site; exceptions
propagate rather than being captured as field errors.
raw docstring

->stringclj/s


capitalizeclj/s


defaultclj/s

(default v)

Returns a presentation lex that substitutes v whenever the value is nil. E.g. (default "—") shows an em-dash for missing values.

Returns a presentation lex that substitutes `v` whenever the value is nil.
E.g. (default "—") shows an em-dash for missing values.
raw docstring

default-presentationsclj/s


lower-caseclj/s


omitclj/s


trimclj/s


upper-caseclj/s

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close