add Template to calculate digest of files