public void render(List<DocItem> listItems, String name) throws Exception {
String nameWithExtension = helper.getCompleteFileName(INDEX, HTML_EXTENSION);
List<LinkDocItem> files =
fileListHelper.getListOfFileAsString(nameWithExtension, INDEX, HTML_EXTENSION);
MenuDocItem menu = new MenuDocItem("List of doctest files", files);
String body = htmlItems.getListFilesTemplate(menu);
IndexFileDocItem index = new IndexFileDocItem(name, body);
helper.writeFile(nameWithExtension, htmlItems.getIndexTemplate(index));
}