Fork me on GitHub
#rum
<
2018-02-01
>
sparkofreason17:02:06

Seems like the reader-tag idea explored here should make the hiccup renderer pluggable: http://tonsky.me/blog/hiccup/

rauh17:02:32

I don't think you can ship a library with data_readers.clj file, so this would need to be setup by users. I don't dislike the reader tag, it's a neat idea. You could easily hook up hicada/sablono to it.

rauh17:02:56

Oh wait, I'm wrong. It looks like cljs compiler properly gets all the data_readers.cljc files from the JVM resources...

rauh17:02:08

So that would be possible then.

misha19:02:03

the downside of reader tags here is – html/xml is probably the most verbose thing in clojure dev stack, and even with such short ns name like rum – it will probably suck to read/write it. harold

rauh20:02:09

I agree, especially if every single react element is tagged. I think the Quote: "Also: what if a new release of the compiler changes the formula and somewhere deep inside your app some rarely-seen dialogue will silently stop working? Seems like a time bomb waiting to explode." could probably be relatively simple detect/warned at build time, if a :span, :div (etc) keyword makes it into the build. I'm personally not too worried about this, but I can see how it could silently lead to runtime errors that remain undetected if you don't test components.