Skip to content

hiccup-style adapter doesn't cope well with transformation results #127

Open
@cemerick

Description

@cemerick

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions