cljss icon indicating copy to clipboard operation
cljss copied to clipboard

Support server-side rendering

Open roman01la opened this issue 8 years ago • 5 comments

roman01la avatar Oct 12 '17 09:10 roman01la

So, to support server side rendering need to rewrite everything in cljc and conditionally use deps, right?

alehatsman avatar Nov 16 '17 18:11 alehatsman

+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 avatar May 23 '18 19:05 leontalbot

@leontalbot yes, it can be ported to cljc, but I don't have time for this at the moment

roman01la avatar May 24 '18 09:05 roman01la

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

roman01la avatar May 26 '18 07:05 roman01la

1.7.0-SNAPSHOT has 2 circular dependencies which prevents me from testing.

  1. 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)

  2. 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)

groundedsage avatar Sep 20 '18 08:09 groundedsage