title: how to set a base url with sammy?
body: <p>i'm looking around for javascript routing libraries and i come to Sammy, so i'm learning it.</p>
  
  <p>All examples that i've seen so far show hot to proceed routing based from a domain as a base url, like www.mydomain.com/# and then all routes goes on</p>
  
  <p>but i'm doing some trials within a nested dir within my localhost dir, say /wwwroot/play/sammy/  so my base url would be </p>
  
  <pre><code>http://localhost/~rockdeveloper/play/sammy/# 
  </code></pre>
  
  <p>and then all routes must go on, like:</p>
  
  <pre><code>http://localhost/~rockdeveloper/play/sammy/#/products
  http://localhost/~rockdeveloper/play/sammy/#/clients
  http://localhost/~rockdeveloper/play/sammy/#/search
  </code></pre>
  
  <p>is there any way to set this base url so i can proceed to config sammy routes like this ?</p>
  
  <pre><code>get('#/products')
  get('#/clients')
  get('#/search')
  </code></pre>
  
  <p>by now i have to concatenate the main string to the route, and i wish it would be more smart than this...</p>
  
  <pre><code>baseurl='/~rockdeveloper/play/sammy/#/search';
  get(baseurl + '#/products');
  </code></pre>
  
  <p>thanks.</p>