Live data from Hacker News

Rendr - Use Backbone on both the server and client

github.com

31–35 of 35 posts

Re: Rendr - Use Backbone on both the server and client

#31
post #28

This looks fantastic. Anyone know how well something like this deprecates? My dream is to have a mobile site that is all Backbone-y on iPhone/Android but falls back to server-based rendering when loaded through a Blackberry or similar.

The goal is to render everything server-side; you'll need to handle POSTs and whatnots separately (since rendr is effectively middleware, so you can do what you like and redirect back to a GET route to display data.) In theory, it deprecates perfectly.

Re: Rendr - Use Backbone on both the server and client

#32
post #11

This is pretty cool. I've been playing around with a variety of JS frameworks recently and code sharing is probably my 2nd favorite thing about meteor. Anybody know if these guys are hiring? My school's big interview day is on Thursday and airbnb's front-end stack looks appealing.

We are absolutely hiring! airbnb.com/jobs

Re: Rendr - Use Backbone on both the server and client

#33
I'm using http://phantomjs.org/ to render my EmberJS app's pages and serve those to crawlers. I hope to write a blog post about it soon. It has the benefit of working with any software stack, not just Node.js.

Rendr looks like a much more robust solution, however. I'll have to see if I can incorporate some of it's techniques, specifically serving HTML on page load.

Re: Rendr - Use Backbone on both the server and client

#34

I'm using http://phantomjs.org/ to render my EmberJS app's pages and serve those to crawlers. I hope to write a blog post about it soon. It has the benefit of working with any software stack, not just Node.js. Rendr looks like a much more robust solution, however. I'll have to see if I can incorporate some of it's techniques, specifically serving HTML on page load.

Cool I'd be interested in reading about that.

Re: Rendr - Use Backbone on both the server and client

#35

My brother released a very similar project about 8 months ago.[1] He never did properly announce or document it so it's no surprise that nobody else is using it. Of course, it's not like rendr has any real documentation, either. However it has been working very well for us, so it is validation of the rendr approach. A quick glance at their documentation indicates a very similar design, comparing the two projects shou…

I looked a little bit more at the rendr source, and one thing that immediately jumps out at me is the code BaseView#getTemplateData[1] which very tightly couples the model & views together. You should totally steal highbrow's ViewModel code, which is very sweet. (But you might want to come up with a better name). Rather than passing @model.toJSON() as template data, highbrow creates a ViewModel from the model or coll…

Cool, I like that ViewModel pattern. You could certainly use that with Rendr.
Post reply on HN