Merge template data with file.data

Implements issue #13