Liking cljdoc? Tell your friends :D

selmer.filters

To create a filter use the function add-filter! which takes a name and a fn. The first argument to the fn is always the value obtained from the context map. The rest of the arguments are optional and are always strings.

To create a filter use the function add-filter! which takes a name and a fn.
The first argument to the fn is always the value obtained from the context
map. The rest of the arguments are optional and are always strings.
raw docstring

add-filter!clj

(add-filter! name f)

call-filterclj

(call-filter name & args)

filtersclj


fix-dateclj

(fix-date d)

generate-jsonclj

JSON generation function. Resolved in the (arbitrary) order of cheshire, clojure.data.json, jsonista. Falls back on function that throws at runtime. It is important for GraalVM native-image that we resolve this at compile time (top level).

JSON generation function. Resolved in the (arbitrary) order of cheshire, clojure.data.json, jsonista. Falls back on function that throws at runtime. It is important for GraalVM native-image that we resolve this at compile time (top level).
raw docstring

get-filterclj

(get-filter name)

parse-numberclj

(parse-number value)

Parses a number to Long or Double. Throws NumberFormatException if value cannot be converted to Long or Double.

Parses a number to Long or Double. Throws NumberFormatException if value cannot be converted to Long or Double.
raw docstring

remove-filter!clj

(remove-filter! name)

throw-when-expecting-numberclj

(throw-when-expecting-number x & [msg])

throw-when-expecting-seqableclj

(throw-when-expecting-seqable x & [msg])

Throws an exception with the given msg when (seq x) will fail (excluding nil)

Throws an exception with the given msg when (seq x) will fail (excluding nil)
raw docstring

valid-date-formatsclj

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