Support server-side rendering
So, to support server side rendering need to rewrite everything in cljc and conditionally use deps, right?
+1 Would be awesome. :-) I am writing cljc reagent liked components that, by the help of some util fns, get converted to server-side hiccup. Do you think cljss could be a nice fit there?
@leontalbot yes, it can be ported to cljc, but I don't have time for this at the moment
For anyone using cljss with Rum, here's a gist with the code that I'm using to render Rum+cljss on JVM Clojure https://gist.github.com/roman01la/3407c1c32df904f9a570985e9228aeda
1.7.0-SNAPSHOT has 2 circular dependencies which prevents me from testing.
-
Utils.cljc -> Core.cljs -> Utils.cljc (https://github.com/roman01la/cljss/blob/ssr/src/cljss/core.cljs#L3 , https://github.com/roman01la/cljss/blob/ssr/src/cljss/utils.cljc#L102)
-
Core.clj -> Cljss-compiler - Core.clj (https://github.com/roman01la/cljss/blob/ssr/src/sablono/cljss_compiler.clj#L16, https://github.com/roman01la/cljss/blob/ssr/src/cljss/core.clj#L8)