peerlibrary / meteor-blaze-components

Reusable components for Blaze
http://components.meteorapp.com/
BSD 3-Clause "New" or "Revised" License
354 stars 26 forks source link

Server side rendering #110

Open mitar opened 8 years ago

mitar commented 8 years ago

Preliminary testing looks pretty promising. Many tests are already passing. It seems that if the author is precise how they define components, things work. So no jQuery changes of DOM, and state local to the component instance, without global state.

This pull request would help that we do not have to copy too much code from the templating package: https://github.com/meteor/meteor/pull/5903

mitar commented 8 years ago

Some questions with server side rendering:

thebarty commented 8 years ago

I have a general question about SSR in Meteor in combination with BlazeComponents.

Let's say I have a shop and want everything to be static (SSR or Caching p.e. thru Ngnix), except the "add-to-shopping-cart"-functionality and "your-last-viewed-products-history"-functionality.

How would you approach this as a pro? is this currently possible in Meteor at all?

mitar commented 8 years ago

Not really sure. I have not looked yet much into server-side rendering.

thebarty commented 8 years ago

I created a topic for discussion on https://forums.meteor.com/t/ssr-rendering-wholepunching/20680