Open
Description
This was surprising:
> (html (at (html [:a])
[:a] (content "foo")))
ClassCastException [trace missing]
(Finding the cause was "fun"; there's no stacktrace because the failure is in the destructuring of the first map element in the vector result of at
.)
Anyway, the workaround is easy (seq
around the result of at
). The impl of nodify
should probably fall through to the (sequential? node-spec)
case if node-spec
is a vector with a map for a first element.