Add Template.clear

R=arv

Review URL: https://codereview.appspot.com/12574043