-
Notifications
You must be signed in to change notification settings - Fork 99
Is it possible to support server side rendering as an option for initial page? #39
Comments
Hi @rukor, Chestnut is opinionated about using Om on the frontend, so you typically don't generate much HTML on the server side. However Compojure and Enlive are already included so you should have everything you need. If you're going to do a more traditional server side app you might want to use the Do you have a concrete example of what you think is missing? |
Hi, I was talking about rending the om component tree server side initially and let react/om pickup on the client side after the first render. |
I see, I'm not familiar enough with how that works. @swannodette you have an opinion on this? In general refer to the discussion in #29 regarding feature requests. This seems like the kind of thing where a tutorial would be better than another command line flag. |
I believe the server-side rendering story hasn't been completely worked out |
That is fine, I suppose I should have phrased it as is this something worth looking into? I do have plans to take some time out to look into it. If I am able to get it working in some sensible way, perhaps I'd come back to ask if it would be useful for others, as I think its mostly going to be composed of boilerplate stuff that might benefit from templating. |
@rukor I have plans to set up a site for Chestnut in the near future, and add tutorials there. I feel Chestnut is a great first step to get people started quickly, but after that they also need to learn what they're actually doing, what all this code is for, and how to take the next steps. If you manage to figure this stuff out it would be awesome if you could summarize what you did and why in a markdown file, which could become part of the tutorial collection. In the short term we could just add it to the repo and link from the README. what do you think? |
Hi, that sounds good to me. Thanks a lot for this effort. |
@plexus let me know if I can help you with the site in any way. |
There is one example with this feature https://github.com/pleasetrythisathome/om-server-rendering |
There is a documentation site now at http://plexus.github.io/chestnut/. Contributions are very welcome, just drop a markdown file in the Another place where it could be added is Om-cookbook |
Asking this here as not sure where else to ask it.
The text was updated successfully, but these errors were encountered: