$def with (catalognames_by_letter, letters)
<html>
  <head>
    <title>
      Catalognames
    </title>
    <link rel="stylesheet" type="text/css" href="../static/pkgdb.css" />
  </head>
  <body>
    <ul class="toc">
$for letter in letters:
  <li><a href="#letter-$letter">$letter</a></li>
</ul>
$for letter in letters:
  <h2 class="initial clear-float"><a name="letter-$letter"></a>$letter</h2>
  <ul class="catalogname-list">
  $for catalogname in catalognames_by_letter[letter]:
    <li><a href="$catalogname[0]/">$catalogname[0]</a></li>
  </ul>
</body>
</html>

