title: Express Url Generation
body: <p>I've recently been playing with nodejs and would like to build my first project with it. But there is a major stumbling block for me. </p>
  
  <p><strong>URL Generation.</strong></p>
  
  <p>I'm very used to Codeigniter's <code>base_url()</code> and <code>site_url()</code>, this gave a full url like <a href="http://www.example.com/resources/img/bla.jpg" rel="nofollow">http://www.example.com/resources/img/bla.jpg</a>, so it's been a bit odd for me to find that there is no such equivalent functions for NodeJS / Express.</p>
  
  <p>Am I going about this wrong or is there a module somewhere that would make it possible to generate urls much like <code>base_url()</code> and <code>site_url()</code> did?</p>
  
  <p><em>I'm using the Express Framework with Jade as the template engine and MongoDB as the Database.</em></p>