A really nice project that helps focus on the Javascript template engine that best fits your needs:
http://garann.github.com/template-chooser/
Also, to help taking the call for your next project, this throwdown from the Linkedin engineering team:
http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more
So which one would you take?