Liking cljdoc? Tell your friends :D

selmer.util


*block-pattern*clj


*block-super-pattern*clj


*custom-resource-path*clj


*endblock-pattern*clj


*escape-variables*clj


*extends-pattern*clj


*filter-close*clj


*filter-close-pattern*clj


*filter-missing-values*clj


*filter-open*clj


*filter-open-pattern*clj


*filter-pattern*clj


*include-pattern*clj


*missing-value-formatter*clj


*resource-fn*clj

Var to override the implementation of io/resource. Used by babashka.

Var to override the implementation of io/resource. Used by babashka.
raw docstring

*short-comment-second*clj


*tag-close*clj


*tag-close-pattern*clj


*tag-open*clj


*tag-open-pattern*clj


*tag-pattern*clj


*tag-second*clj


*tag-second-pattern*clj


*tags*clj


*url-stream-handler*clj


->bufcljmacro

(->buf [buf] & body)

assoc-in*clj

(assoc-in* m ks v)

Works best for small collections seemingly.

Works best for small collections seemingly.
raw docstring

check-tag-argsclj

(check-tag-args args)

check-template-existsclj

(check-template-exists resource)

default-missing-value-formatterclj


exceptioncljmacro

(exception & [param & more :as params])

ffindclj

(ffind f coll)

finds and returns the first element in a collection where function f evaluates to true.

finds and returns the first element in a collection where function f evaluates to true.
raw docstring

fix-accessorclj

(fix-accessor ks)

Turns strings into keywords and strings like "0" into Longs so it can access vectors as well as maps.

Turns strings into keywords and strings like "0" into Longs
so it can access vectors as well as maps.
raw docstring

hexclj

(hex algo s)

looks-like-absolute-file-path?clj

(looks-like-absolute-file-path? path)

Does the resource path seem to be an absolute file path, considering the system file separator, and (when running on Windows) the possibility of a drive letter prefix?

Does the resource path seem to be an absolute file path, considering
the system file separator, and (when running on Windows) the
possibility of a drive letter prefix?
raw docstring

on-windows?clj

(on-windows?)

Do we seem to be running on Windows?

Do we seem to be running on Windows?
raw docstring

open-short-comment?clj

(open-short-comment? ch rdr)

open-tag?clj

(open-tag? ch rdr)

parse-accessorclj

(parse-accessor accessor)

Split accessors like foo.bar.baz by the dot. But if there is a double dot '..' then it will leave it

Split accessors like foo.bar.baz by the dot.
But if there is a double dot '..' then it will leave it
raw docstring

patternclj

(pattern & content)

peek-rdrclj

(peek-rdr rdr)

read-charclj

(read-char rdr)

read-tag-contentclj

(read-tag-content rdr)

read-tag-infoclj

(read-tag-info rdr)

resource-last-modifiedclj

(resource-last-modified resource)

resource-pathclj

(resource-path template)

set-custom-resource-path!clj

(set-custom-resource-path! path)

set-missing-value-formatter!clj

(set-missing-value-formatter! missing-value-fn
                              &
                              {:keys [filter-missing-values]
                               :or {filter-missing-values false}})

Takes a function of two arguments which is called on a missing value. The function should return the value to be output in place of an empty string (which is the default from 'default-missing-value-formatter').

Call with named argument :filter-missing-values true to force filtering of missing values (although for most use cases this will not make sense).

Arguments to missing-value-fn: tag - map with data for the tag being evaluated. Contains the key :tag-type with the value :filter or :expr (for filter or expression tag types. For :filter: tag-value - the contents of the filter tag as a string. For :expr: tag-name - the name of the expression. args - the args provided to the expression. context-map - the context-map provided to the render function.

Takes a function of two arguments which is called on a missing value.
The function should return the value to be output in place of an empty string
(which is the default from 'default-missing-value-formatter').

Call with named argument :filter-missing-values true to force filtering of missing
values (although for most use cases this will not make sense).

Arguments to missing-value-fn:
tag - map with data for the tag being evaluated.
      Contains the key :tag-type with the value :filter or :expr (for filter or expression tag types.
      For :filter:
         tag-value - the contents of the filter tag as a string.
      For :expr:
         tag-name - the name of the expression.
         args - the args provided to the expression.
context-map - the context-map provided to the render function.
raw docstring

set-url-stream-handler!clj

(set-url-stream-handler! path)

split-by-argsclj

(split-by-args s)

turn-off-escaping!clj

(turn-off-escaping!)

turn-on-escaping!clj

(turn-on-escaping!)

with-escapingcljmacro

(with-escaping & body)

without-escapingcljmacro

(without-escaping & body)

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