Skip to content

Commit

Permalink
dynamic templates: added fileClone variable
Browse files Browse the repository at this point in the history
- as request from @ViliamKopecky
  • Loading branch information
enzy committed Sep 4, 2017
1 parent cf9738d commit 12caf4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = function(gulp, config) {
var fileClone = file.clone()
var fileData = filesData[index]
fileClone.path = path.join(fileClone.base, index)
fileClone.data = { fileData: fileData }
fileClone.data = { fileData: fileData, filePath: fileClone.path }
this.push(fileClone)
}
callback()
Expand Down

0 comments on commit 12caf4c

Please sign in to comment.