<%= tocTitle %>

<% content.forEach(function(content, index){ %> <% if(!content.excludeFromToc){ %>

<%= (1+index) + ". " + (content.title || "Chapter "+ (1+index)) %> <% if(content.author.length){ %> - <%= content.author.join(",") %> <% } %> <% if(content.url){ %><%= content.url %><% }else{ %><% } %>

<% } %> <% }) %>