Adapter to read an edn file.
Adapter to read an edn file.
(format-file filename)
Format the edn
file
Format file is not blocking if the formatter is not setup or if the file does not exist
Returns nil if successfully updated Params:
filename
to formatFormat the `edn` file Format file is not blocking if the formatter is not setup or if the file does not exist Returns nil if successfully updated Params: * `filename` to format
(formatter-setup)
(read-edn edn-filename)
Read file which name is edn-filename
.
Returns:
filename
raw-content
if file can be read.invalid?
to true
whatever why.exception
if something wrong happened.edn
if the translation.Read file which name is `edn-filename`. Returns: * `filename` * `raw-content` if file can be read. * `invalid?` to `true` whatever why. * `exception` if something wrong happened. * `edn` if the translation.
(str->edn raw-content)
(write edn-filename content)
Spit the content
in the edn file called edn-filename
.
Params:
edn-filename
Filenamecontent
What is spitted
Return nil if successful else map with :exceptionSpit the `content` in the edn file called `edn-filename`. Params: * `edn-filename` Filename * `content` What is spitted Return nil if successful else map with :exception
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close