Check out the sample and code walkthrough at http://kashyapas.com/2011/05/releasing-netflix-catalog-using-htmlodatadatajsjquery/.
- All the app components run in the browser!
- Clever use of the datajs cache – those values aren’t changing anytime soon, and it definitely speeds things up to avoid round-trips. Nice way of reducing the page startup time.
- Templates are stored as plain text files on the server, then retrieved at runtime when the page needs them – again, clever!
- A server that opens up its data for cross-domain access enables some very, very powerful scenarios.
The code is available on CodePlex and is short & sweet. Enjoy!