JavaScript Templates with Handlebars.js.

Web apps are using JavaScript to create dynamic interfaces now more than ever before, and that’s not a trend that will change any time soon. DOM manipulation is great for simpler JavaScript apps, but what do you do when you’re changing huge chunks of the document with each change of the view? That’s where JavaScript templating comes into play.

I found this after a Google search for handlebar.js [1], an old stripped-down Javascript templating engine based on Mustache.js [2] — what you’re referring to is the more recent (and unhelpfully-named) Handlebar/s/.js, which purports to do the same thing, and unhelpfully makes no reference to the original.