Jquery.tmplloader is a project mainly written in JavaScript, it's free.
remote template loader
Little utility which loads and caches remote templates on demand. Compatible with various template engines.
dependencies:
usage:
$.tmplLoader.get("template-name" function(content){
// callback
});
override default options:
$.tmplLoader.init(options);
or:
$.tmplLoader.get("template-name", callback, options);