merging file.data to opts.locals