<% if ($chapter eq 'handbook') { %>
<% foreach my $h ( sort grep { $_ ne 'handbook.html.ep' } split /\n/, `ls templates/handbook` ) { %>
<% $h =~ s/\.html\.ep//gi; %>
<%= &subs::format_name($h) %>
<% } %>
<% } else { %>
<%= &subs::format_name($chapter) %>
<%= include 'handbook/' . $chapter %>
<% } %>