def write_index_file(index_file, out_file, deltas): index = hnio.load_file(index_file) index += '<ul>\n' for delta in sorted(deltas): index += '<li><a href="delta%s/subnetworks.html">δ = %s</a></li>\n' % (delta, delta) index += '</ul>' hnio.write_file(out_file, index)