Small doc string error?… The doc string for dom/text says it returns the last argument but I think it returns (e/amb) (as stated at https://electric.hyperfiddle.net/tutorial/temperature2 for example).
are you sure?
Pretty sure.
I was playing with that example.
The following prints nil:
(println (dom/dt))
The following prints nothing:
(println (dom/text))Oh, did you mean the doc string? I have:
(defmacro text
"Mount a DOM TextNode in current `node` for each argument in `args`.
Each TextNode will contain the stringified argument.
Return last argument as in `do`."
[& args] `(e/drain ~@(for [arg args] `($ Text ~arg))))ah my mistake, the docstring is wrong