Liking cljdoc? Tell your friends :D
All platforms.

integrant-tools.edn


lazy-readclj/s

(lazy-read s)
(lazy-read readers s)

Reads the EDN string s, but doesn't evaluate any readers tags except the ones supplied in readers. Instead of evaluating them they are converted to a map. This is useful if you want read multiple config files, merge them, and write them back to a string, without losing the reader tags.

For example:

(it.edn/lazy-read "{:lotr/quote #it/str [...]}")

Is read to:

{:lotr/quote {:reader/tag 'it/str :reader/value [...]}}

Which can then later be written to a string using meta-str.

Reads the EDN string `s`, but doesn't evaluate any readers tags except the
ones supplied in `readers`. Instead of evaluating them they are converted to
a map. This is useful if you want read multiple config files, merge them, and
write them back to a string, without losing the reader tags.

For example:

```clojure
(it.edn/lazy-read "{:lotr/quote #it/str [...]}")
```

Is read to:

```clojure
{:lotr/quote {:reader/tag 'it/str :reader/value [...]}}
```

Which can then later be written to a string using `meta-str`.
sourceraw docstring

meta-strclj/s

(meta-str config)

Convert a lazily read EDN structure into a string, adding the meta data to the string as well.

Convert a lazily read EDN structure into a string, adding the meta data to
the string as well.
sourceraw docstring

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

× close