move each template into its own file