I'm stumbling across this when I am taking HTML generated by existing code and run it through template/node. Input like [... {:style "background-color: lime"} ...] leads to an exception along the lines of name not supported, because attr/style-str assumes that its input is always a map.
If it's ok with you I can provide a pull request that changes style-str to return its argument unchanged if it is a string.
I'm stumbling across this when I am taking HTML generated by existing code and run it through template/node. Input like
[... {:style "background-color: lime"} ...]
leads to an exception along the lines ofname not supported
, becauseattr/style-str
assumes that its input is always a map.If it's ok with you I can provide a pull request that changes
style-str
to return its argument unchanged if it is a string.