Closed pesterhazy closed 7 years ago
This is reasonable, as long as string values are still supported for styles to retain backward compatibility.
Fixed by #139.
Which Hiccup version supports style attributes as a map?
Answer: 2.0.0-alpha1
This just bit me but I've asked before :) https://github.com/weavejester/hiccup/pull/139#issuecomment-355088387
Reagent supports an extension to hiccup's syntax:
as a more readable version of
:margin-top 75
also works. This is a useful extension and quite natural. It's also mildly surprising for people coming from reagent (back) to hiccup that this doesn't work in hiccup pure.Would you be interested in such an extension?