Support custom template file extension