Move templates to files