https://github.com/borkdude/html: Produce HTML from hiccup in Clojure and ClojureScript 0.2.5 • https://github.com/borkdude/html/pull/16: only render a map attribute value as CSS when the key is`style`; other map-like values such as records now render via`str`(https://github.com/telekid) • Fix escaping in cljs when escaped characters appear more than once in string (https://github.com/telekid)
This is once again awesome, @borkdude. I had hacked something "myself" (=nicked it somewhere else) and now there is a good way to do this. I wanted to use hiccup->html conversion from nbb, and for some reason hiccup itself didn't work (some java dependency). I suppose this also works in nbb, correct?
@gregorybleiker I haven't tested, but I hope so :)
yep, seems to work fine
$ npx nbb -cp src
Welcome to nbb v1.4.208!
user=> (require '[borkdude.html :as html])
nil
user=> (html/html [:a 1])
#object[borkdude.html.Html 0x6 "<a>1</a>"]
user=> (str (html/html [:a 1]))
"<a>1</a>"
user=>