added support for other template file extensions