<!DOCTYPE html>
<html>
  <head>
    <title>Directory listing for <%= HTML.escape request_path %></title>
  </head>
  <body>
    <h2>Directory listing for <%= HTML.escape request_path %></h2>
    <hr/>
    <ul>
      <% Dir.foreach(path) do |entry| %>
        <% next if entry == "." || entry == ".." %>
        <li>
          <a href="<%= request_path == "/" ? "" : escaped_request_path %>/<%= URI.escape entry %>"><%= HTML.escape entry %></a>
        </li>
      <% end %>
    </ul>
  </body>
</html>
