convert file entry to tempalte