Move templates into external files