Edit templates file content