Move templates to files.