title: Sammy.js - Get path from within route
body: <p>I'm learning Sammy.js and using it to build a mini-application on top of a REST API I'm working on. I couldn't find this immediately, and I am probably missing something.</p>
  
  <p>I'm using routes like:</p>
  
  <pre><code>this.get("/databases/:name", function () { ... });
  </code></pre>
  
  <p>I basically want to take the route path and pass it along to my REST API, since they largely match up anyways. I've inspected <code>this</code> within the callback, and found a property called <code>path</code> that contains the full path, including the filename. (i.e. <code>/index.html#/databases/foo</code>)</p>
  
  <p>All I care about is what comes after the <code>#</code>, and I wonder if there is something baked in so I don't have to use <code>this.path.split("#")[1]</code>.</p>