Split out templates into a separate file.