Liking cljdoc? Tell your friends :D

protean.api.codex.placeholder

Placeholder functionality, swapping codex examples, generating.

Placeholder functionality, swapping codex examples, generating.
raw docstring

fn-swap-bagclj

source

fn-swap-expclj

source

fn-swap-genclj

source

gen-structclj

(gen-struct struct tree bag gen-all)

generate a structed value, where the sub-values may be recursively generated

generate a structed value, where the sub-values may be recursively generated
sourceraw docstring

holder-swapclj

(holder-swap m swap-fn tree)

Swap generative values in m of placeholders.

Swap generative values in m of placeholders.
sourceraw docstring

holder?clj

(holder? v)

Does a value contain a placeholder?

Does a value contain a placeholder?
sourceraw docstring

map-holdersclj

(map-holders s)
source

phclj

source

read-fromclj

(read-from template a-ph s)
source

regex-patternclj

(regex-pattern tree v)
source

replace-all-withclj

(replace-all-with s func)

replace all occurrences in string of placeholder with result of applying func to the placeholder name

replace all occurrences in string of placeholder with result of applying func to the placeholder name
sourceraw docstring

response-bagclj

(response-bag {:keys [status]}
              {:keys [tree headers path-params matrix-params query-params
                      form-params response]})

A bag of placeholder values from the request

A bag of placeholder values from the request
sourceraw docstring

swapclj

(swap m tree bag & {:keys [gen-all]})

swaps all occurances of placeholders in m with values in bag or generated/examples from tree. Note vars marked as :gen false in tree will not be generated (unless optional parameter :gen-all is true)

swaps all occurances of placeholders in m with values in bag
or generated/examples from tree.
Note vars marked as :gen false in tree will not be generated (unless optional parameter :gen-all is true)
sourceraw docstring

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

× close