Liking cljdoc? Tell your friends :D

clj-concordion.internal.interop


concord-var->symclj

(concord-var->sym name)

#var -> var

`#var` -> `var`
sourceraw docstring

conform-or-failclj

(conform-or-fail spec val)
source

edn->dataclj

(edn->data expr)

Parse EDN with a user-friendly error handling into data.

Parse EDN with a user-friendly error handling into data.
sourceraw docstring

evaluateclj

(evaluate vars-atom ns expr)

Evaluate expressions from specifications such as add(#arg1, #arg2) given previously stored variables. See org.concordion.internal.OgnlEvaluator for the original evaluator.

Params:

  • vars-atom atom containing a map with known variables (symbol -> value)
  • ns - the namespace where to look for symbols (functions) used in the expression
  • expr - the expression
Evaluate expressions from specifications such as `add(#arg1, #arg2)` given
previously stored variables.
See `org.concordion.internal.OgnlEvaluator` for the original evaluator.

Params:
- `vars-atom` atom containing a map with known variables (symbol -> value)
- `ns` - the namespace where to look for symbols (functions) used in the expression
- `expr` - the expression
sourceraw docstring

exposed-clj-fnsclj

Core functions we make directly usable in expressions

Core functions we make directly usable in expressions
sourceraw docstring

expr->ednclj

(expr->edn expr)

Sanitize a Concordion function call expression so that it is a valid EDN string.

Sanitize a Concordion function call expression so that it is a valid EDN string.
sourceraw docstring

new-eval-factoryclj

(new-eval-factory)
source

new-fixtureclj

source

parse-expr-dataclj

(parse-expr-data expr-edn)

Ex.inputs from spec/conform:

  1. [:assign-expr {:variable out, :equals =, :call-expr {:function myfn, :arguments ([:number 1] [:number 2])}}]
  2. [:call-expr {:function myfn, :arguments ([:number 1] [:number 2])}]
Ex.inputs from spec/conform:
1) `[:assign-expr {:variable out, :equals =, :call-expr {:function myfn, :arguments ([:number 1] [:number 2])}}]`
2) `[:call-expr {:function myfn, :arguments ([:number 1] [:number 2])}]`
sourceraw docstring

path->var-symbolclj

(path->var-symbol path)

From "/my/awesome-ns/MySpec.md" to 'my.awesome-ns-test/MySpec.

From "/my/awesome-ns/MySpec.md" to 'my.awesome-ns-test/MySpec.
sourceraw docstring

resolve-argclj

(resolve-arg vars var-sym idx)
source

resolve-argsclj

(resolve-args vars arguments)
(resolve-args path vars arguments)

Resolve the arguments inside an expression's function call, given the known variables vars

Resolve the arguments inside an expression's function call, given the known variables `vars`
sourceraw docstring

specification->fixtureclj

(specification->fixture resource href)
source

specification->fixture-locatorclj

source

sym->qualifiedclj

(sym->qualified ns unqualified-sym)
source

var->pathclj

(var->path v)
(var->path v type-suffix)

From #'my.awesome-ns/MySpec to "/my/awesome-ns/MySpec.md". Args:

  • v the var to map
  • type-suffix: (md|html|nil) where nil means append no suffix
From #'my.awesome-ns/MySpec to  "/my/awesome-ns/MySpec.md".
Args:
 - v the var to map
 - type-suffix: (md|html|nil) where nil means append no suffix
sourceraw docstring

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

× close