I only found examples using React, or my application is using Blaze only. Does someone already have an example of server-render & Blaze working together? I need to render whole pages server-side, not just a single ID on the page. Thanks!
Hello, thanks for the answer but I am still confused about how to use it inside even a simple app. I have for example this defined as a route (using iron-router):
My question, where do I put the code to actually make sure that the template is rendered server side? This is the point where I am stuck. In the router? And then just send some HTML to the client? Or it’s something different? Thanks!
I think the problem there is, Iron Router does not support server-render. However, if you place the following function on the server, you can see that server-render provides the URL in the sink function, and that can be used to determine what to display.
Ok, from the documentation I really didn’t understand that there were some links to the router. So what router should I use to use server-render + Blaze?
Thanks for posting this @msavin . Are there any benefits of using it vs. meteorhacks:ssr for server-side rendering of email templates? On first read, they seem pretty similar.