Closed kwrooijen closed 2 years ago
Can you add some tests? e.g. around nil
etc.
Also use to-str
as it's more efficient for single values.
Not sure what to test. Since tests for attributes (including a nil attribute) are already included.
Keywords should be treated differently, right? So a test could be added for those.
Closed by #195.
Use
hiccup.util/as-str
for each item in a sequence attribute. This would allow users to extend thehiccup.util/ToString
protocol in attributes with a sequence. Which I personally need to render atoms / functions properly. My webpage still renders with this change, and tests didn't break. However I can't say if this change has no impact at all.