")?;
- true
- } else {
- false
+ if path == ¤t_path {
+ out.write(" class=\"active\"")?;
}
+
+ out.write(">")?;
+ true
} else {
+ out.write("")?;
false
};
@@ -165,6 +165,8 @@ impl HelperDef for RenderToc {
if path_exists {
out.write("")?;
+ } else {
+ out.write("
")?;
}
// Render expand/collapse toggle