Closed marpett closed 10 years ago
It looks to me like your code isn't running on the server side. Where have you put your routecore rendering code? For routecore to cause rendering to also occur on the server, you cannot put any of your code in the client/
folder. Code in the client folder isn't run on the server, and thus server-side rendering won't occur.
Thank you, that was part of the problem. The other part was that I wasn't familiar enough with fast-render to know to put this.subscribe in the routes, i.e:
RouteCore.map(function() {
Routes.page = this.route('/:someparameter', function(ctx) {
this.subscribe("collection", ctx.params.someparameter);
return Page(ctx);
});
});
Hey, great work on RouteCore, it was exactly what I was looking for. The routing is working well, but I'm having some problems getting react rendering to work server side. I'm fairly new to Meteor so this might not be an issue with RouteCore, but I'm not sure where else to ask. Basically, the initial source looks like this:
collectionData seems to be empty, and nothing is rendered in body on initial load. Any idea what I've done wrong?