map.put("chapter", c);
map.put("curchap", index);
map.put("curdir", currentDir);
map.put("parser", parser);
map.put("dirTree", dirTree);
map.put("sanitizer", new HtmlSanitizer());
map.put("previous", dirTree.get(currentDir - 1));
if (currentDir+1 < dirTree.size()) {
map.put("next", dirTree.get(currentDir + 1));
} else {
map.put("next", "");