- Table of Contents
<% renderToc = function(children) { %>
<% children.forEach(function(toc) { %>
-
<% if(!toc.id) { %>
(unnamed section)
<% } else { %>
<%-toc.title %>
<% } %>
<% if(toc.children.length) { %>
<%renderToc(toc.children); %>
<% } %>
<% }); %>
<% } %>
<% renderToc(toc.children); %>
<%-content %>