Introducing: JSHTML
james.padolsey.com
james.padolsey.com
A little, yeah.
"This looks a little better:"
Insanity. That's the only explanation. The second example is worse in every way, as far as I can see.
This could be useful as a mini-templating engine for JavaScript but the article doesn't talk about that. I'd still be concerned about the performance impact of parsing HTML every time a partial page update is applied.