title: Traverse through directory of html files using jQuery?
body: <p>I'm setting up a simple portfolio site, which I want to load dynamically; I'm using  the jQuery plugin <a href="http://cmpolis.github.com/Pagify/" rel="nofollow">pagify.js</a> for this. The setup of that plugin is quite simple, it's like this:</p>
  
  <pre><code>$('#page_holder').pagify({ 
      pages: ['home', 'about', 'contact'], 
      default: 'home'  
  }); 
  </code></pre>
  
  <p>The only problem with this is that every single page you want to load has to be added manually to the array.</p>
  
  <p>Is there a way to traverse through a directory, and add each page in it to the array? So if I had a directory /posts, containing the files foo.html and bar.html, it'd return 'foo', 'bar'.</p>
  
  <p>EDIT: Should've added, the "backend system" (as far as you can call it that) is Jekyll, so it's just a bunch of html pages on the server.</p>