Liking cljdoc? Tell your friends :D

com.cognitect.vase.edn


from-fileclj

(from-file file-path)
source

from-resourceclj

(from-resource file-path)
(from-resource file-path fallback-path)
(from-resource file-path fallback-path process-path-fn)

Load an EDN resource file and read its contents. The only required argument is file-path, which is the path of a file relative the projects resources directory (resources/ or, for tests, test/resources/).

Optional arguments:

  • fallback-path - A "default" path to check if file-path is actually an empty string. Useful in places you load a file-path from a config and its value might be absent.
  • process-path-fn - The function to use for getting the URL of the file. By default uses clojure.java.io/resource.
Load an EDN resource file and read its contents. The only required argument
is `file-path`, which is the path of a file relative the projects resources
directory (`resources/` or, for tests, `test/resources/`).

Optional arguments:

* `fallback-path` - A "default" path to check if file-path is actually an
  empty string. Useful in places you load a `file-path` from a config and its
  value might be absent.
* `process-path-fn` - The function to use for getting the URL of the file. By
  default uses `clojure.java.io/resource`.
sourceraw docstring

readclj

(read string & args)

Converts an edn string into Clojure data. args are clojure.edn opts :readers defaults to *data-readers*

Converts an edn string into Clojure data. `args` are clojure.edn `opts`
`:readers` defaults to `*data-readers*`
sourceraw docstring

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

× close