'This looks good in practice. But does it work in theory?'
google-jstemplate has been open sourced. (The link points to a slideshow-overview containing the quote above).
I've been pushing much more typically-server-side functionality down to the client, but am finding a wall at some point when things like performance etc come into play. When this happens, I move the functionality back to the server (5 lines of jquery becomes 30 lines of perl or 100 lines of C#) where I have more control and predictability with things like caching/dom parsing/same-origin-policy etc.
I am very interested in learning from the google folks who normally blow through this wall on a regular basis.
see also Jemplate for client side templating coolness.
From the most recent Jemplate changelog:
date: Mon Apr 28 12:44:13 CST 2008
- Robert Krimen provided massive improvements including:
- jQuery support
- YUI support
- Many new command line options for fine grained control
- Doc changes
- Much refactoring
- Ingy added:
- A standalone Jemplate compiler (bin/jemplate)
- Some doc: (bin/README)