title: Using backbone.js routing with Jekyll
body: <p>I am generating a static site using <a href="http://jekyllrb.com/" rel="nofollow">Jekyll</a>. I am using <a href="http://backbonejs.org/" rel="nofollow">backbone.js</a> to do few routings. </p>
  
  <p>Suppose the home page is at <code>localsite.com</code>... I am not sure how to generate routes for the following URLs. </p>
  
  <pre><code>http://localsite.com/hulk &amp;
  http://localsite.com/thor
  </code></pre>
  
  <p>The <em>hulk</em> and <em>thor</em> are the names to be routed. </p>
  
  <p>and my backbone.js router is as follows:</p>
  
  <pre><code>&lt;script&gt;
      var AppRouter = Backbone.Router.extend({
          routes: {
              ":name": "nameRoute" // should match http://localsite.com/anything-here
          }
      });
      // Initiate the router
      var app_router = new AppRouter;
  
      app_router.on('route:nameRoute', function(name) {
          console.log(name);
      })
  
      Backbone.history.start({pushState: true});
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I am not able to get this working. Is there something I am missing?
  Will I be able to do this routing with Jekyll?</p>
  
  <p>My Jekyll's _config.yml has </p>
  
  <pre><code>permalink: pretty
  </code></pre>
  
  <p>How do get these routes working? </p>
  
  <p>Are there any other suggestions? My goal is to get a similar routing when hosted on <a href="http://pages.github.com/" rel="nofollow">github pages</a>. </p>