Marcus is a language for modifying DOM documents and templating HTML without injecting it with app code. It's github page is here, while this site hosts some examples.