diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -11,6 +11,9 @@ var PLUGIN_NAME = 'gulp-wrap';
 
 function compile(file, contents, template, data, options){
   data = data !== undefined ? data : {};
+  if (file.data) {
+    data = extend(true, {}, file.data, data);
+  }
   data.contents = contents;
   /*
    * Add `file` field to source obj used when interpolating
@@ -57,4 +60,4 @@ module.exports = function(opts, data, options){
   }
 
   return es.map(wrap);
-};
\ No newline at end of file
+};
gulp-wrap should look extend the template with file.data

In alignment with gulp-data would be nice if file.data could be used as the data without having to specify file.data.your_variable.