title: Pagination of plain HTML files
body: <p>I have in root folders with index.html files in them:</p>
  
  <pre><code>/2/index.html
  /3/index.html
  /4/index.html
  /5/index.html
  …
  /467/index.html
  /468/index.html
  …
  /lastpagenumber/index.html
  </code></pre>
  
  <p>How to create a pagination script that creates URLs from these folders' names (<code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code> … <code>467</code>, <code>468</code> … <code>lastpagenumber</code>)? In other words I need somehow to parse server to create URLs and detect on which page user is at the moment. So I wanna have on every page a simple kind of pagination like:</p>
  
  <p><strong>1</strong> 2 3 next page  last page</p>
  
  <p>previous page 1 2 <strong>3</strong> 4 5 next page  last page</p>
  
  <p><strong>467</strong> 469 468 last page</p>