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

<%= &subs::format_name($chapter) %>

<%= include 'handbook/' . $chapter %> <% } %>