Twitterpillar - An example app using shared templates
The app will allow you to enter a twitter screen name and see what that user’s followers have tweeted recently. It’s made using the method of sharing templates between the server and browser which I described in the presentation.
The History API is used to change the URL when a follower is selected. The urls the app switches to are normal URLs (i.e. with no #! ‘hashbang’). If a user of the app were to type in and request or refresh the app with one of these proper URLs the HTML for the entire page will be returned from the server with that user selected and their tweets present. This is facilitated by the use of the shared templates.
The twitterpillar app is a node.js app and was developed with node 0.6.
$ git clone git://github.com/dave-elkan/twitterpillar.git $ cd twitterpillar $ npm install -d $ node app.js