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)
source

call-filterclj

(call-filter name & args)
source

filtersclj

source

fix-dateclj

(fix-date d)
source

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

get-filterclj

(get-filter name)
source

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

remove-filter!clj

(remove-filter! name)
source

throw-when-expecting-numberclj

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

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)
sourceraw docstring

valid-date-formatsclj

source

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

× close