Rename files with template names