When bound to a positive integer, ref-meta-to-tagged-literal throws
as soon as the template's nesting depth exceeds this value. nil
(the default) means no limit.
When bound to a positive integer, `ref-meta-to-tagged-literal` throws as soon as the template's nesting depth exceeds this value. `nil` (the default) means no limit.
(template-from-edn-file path
filename
&
{:keys [validatepath max-bytes max-depth]
:or {validatepath false}})Read EDN template from path + filename.
Options:
:validatepath true - reject .. segments in path or filename
and refuse any file whose canonical path
escapes the canonicalised path.
:max-bytes n - refuse to read the file if its size exceeds
n bytes, and abort mid-read once more
than n characters have streamed.
:max-depth n - abort with ex-info if the template's
nesting depth exceeds n during the
reader postwalk.
All limits are opt-in - omit the option (or pass nil) to keep the
caller responsible for the boundary.
Read EDN template from `path` + `filename`.
Options:
`:validatepath true` - reject `..` segments in `path` or `filename`
and refuse any file whose canonical path
escapes the canonicalised `path`.
`:max-bytes n` - refuse to read the file if its size exceeds
`n` bytes, and abort mid-read once more
than `n` characters have streamed.
`:max-depth n` - abort with `ex-info` if the template's
nesting depth exceeds `n` during the
reader postwalk.
All limits are opt-in - omit the option (or pass `nil`) to keep the
caller responsible for the boundary.(template-from-edn-stream ednstream & {:keys [max-bytes max-depth]})Read EDN template from a PushbackReader (e.g. an uploaded file).
Options:
:max-bytes n - abort mid-read once more than n characters have
streamed through the reader.
:max-depth n - abort with ex-info if the template's nesting
depth exceeds n during the reader postwalk.
Both limits are opt-in - omit them to preserve the previous trust-caller default.
Read EDN template from a `PushbackReader` (e.g. an uploaded file).
Options:
`:max-bytes n` - abort mid-read once more than `n` characters have
streamed through the reader.
`:max-depth n` - abort with `ex-info` if the template's nesting
depth exceeds `n` during the reader postwalk.
Both limits are opt-in - omit them to preserve the previous
trust-caller default.(template-from-edn-string ednstring & {:keys [max-bytes max-depth]})Read EDN template from a string (e.g. a slurped file).
Options:
:max-bytes n - throw before parsing when the UTF-8 byte length
of ednstring exceeds n.
:max-depth n - abort with ex-info if the template's nesting
depth exceeds n during the reader postwalk.
Both limits are opt-in - omit them to preserve the previous trust-caller default.
Read EDN template from a string (e.g. a slurped file).
Options:
`:max-bytes n` - throw before parsing when the UTF-8 byte length
of `ednstring` exceeds `n`.
`:max-depth n` - abort with `ex-info` if the template's nesting
depth exceeds `n` during the reader postwalk.
Both limits are opt-in - omit them to preserve the previous
trust-caller default.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |