(add-boolean-option? default-val val)
Utility used to test whether an boolean option should result in a sse event
data-line. Returns true if val
a boolean and isn't the default-val
.
Utility used to test whether an boolean option should result in a sse event data-line. Returns true if `val` a boolean and isn't the `default-val`.
(add-data-lines! data-lines! prefix lines-seq)
Add several data-lines to the data-lines!
transient vector.
Add several data-lines to the `data-lines!` transient vector.
(add-opt-line! data-lines! prefix v)
Add an option v
line to the transient data-lines!
vector.
Args:
data-lines
: a transient vector of data-lines that will be written in a sse
eventprefix
: The Datastar specific preffix for that linev
: the value for that lineAdd an option `v` line to the transient `data-lines!` vector. Args: - `data-lines`: a transient vector of data-lines that will be written in a sse event - `prefix`: The Datastar specific preffix for that line - `v`: the value for that line
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 |