Change extensions of templates