Entourage: Shared Rendering with
It might be hard for you to eye-parse this example without walking through the introductory materials on Backbone in Chapter 7 first, so I suggest you read about MVC and Backbone in the book before going through this example.
To run this example you'll need to build the application with Browserify, I've set up Grunt for that, just like in ch05e11 Browserify + Common.JS. This time around, we'll use a different flow, which will also run the Node application for us, and then watch for changes.
Once your Node server is running, you can see it in action just opening your favorite browser and pointing it at
localhost:3000. Make sure you browse through the code! I'm sure you'll find interesting comments and advice in there!
This sample shows how you could use Rendr to attain shared rendering in Node and the browser.
Browse the code and check out the comments to learn more!