Hey Ray,

I thought I'd plug my own little templating engine here as my benchmarks were quoted by Harry above.

You guys might want to have a look at http://aefxx.com/jqote-plugins/jqote2. The first version was originally based on Resig's brilliant code snippet that has/had some shortcommings (mainly parsing and caching), though.

jQote2 then was rewritten from scratch, faster, more stable and now offers (almost) everything you'd ever want from a client-side templating solution:

- Template precompilation to JavaScript lambdas (i.e. functions)
- Caching mechansim to ease the compilation perfomance hit
- Convenience methods to append/prepend and substitute template outcome within a container
- Custom jQuery events that feature live/delegate binding
- Exception handling that aids in debugging errorneous template code

Give it a try. You won't regret it.
Nice day,
aefxx