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