Adding extensions to template files