title: How to render archive-like structure in sinatra of old wordpress posts?
body: <p>Let's say I scrapped my old wordpress installation and I put the following directories in /public (sinatra application)</p>
  
  <pre><code>2006        2008        2010        category    my-work
  2007        2009        archives    tag
  </code></pre>
  
  <p>The year directories go down in this format:</p>
  
  <p>/year/month/day/title-of-post/</p>
  
  <p>Problem 1:
  I can get /year/month/day/title-of-post/index.html to load a page but I want to be able to load /year/month/day/title-of-post/ to load a page without having to type index.html at the end.</p>
  
  <p>Problem 2:</p>
  
  <p>I want to be able to type /archive and get a <code>&lt;li&gt;&lt;a href="path-to-archived-post"&gt;post title&lt;/a&gt;&lt;/li&gt;</code> of every subdirectory mentioned above. How do I do this?</p>