I can certainly look at providing an equivalent example. I could probably get it done very quickly. In the mean time I'd recommend looking at the source code for
http://github.com/thatcher/recordsofexistence and visit the site over at
http://www.recordsofexistence.com/
Its a very small application that is actually a single url application until your disable javascript in the browser and it runs as a server-side application (aka progressive enhancement). It also has a nice mobile stylesheet for iphone and android.
Claypool, I would argue after looking at Nanal's slides, is an even more forward thinking framework which allows you to build apps like you would server-side apps and then simply decide which, if any portions of the application you want to leave on the server, or move to the client. It is a very DRY approach because everything is written with jquery/javascript/html (even the 'server-side' code). So moving it from server to client requires no additional coding.
Much of the patterns used to achieve this are architectural patterns. You'll notice that every url from recordsofexistence exposes itself as json, for example:
http://www.recordsofexistence.com/artists?fo=json
Notice also that every template is accessible via an http request as well:
http://www.recordsofexistence.com/app/templates/html/pages/artists.html
Regardless of where the application is run the templates are loaded via an ajax request and rendered using the json from the application.
On the client we simply use a technique called Hijax to intercept link clicks and form submissions, load the template and data, and render client-side.We have enabled a few optimizations, precompiling the templates and could have even prebundled the data services to make it purely client-side.
Claypool is also very concise and readable. I'll try to create some slides as I go which provide just enough information. Claypool is a very robust, though small framework and is used in production for many projects including at the Library of Congress.
Thatcher
--
Christopher Thatcher