title: Access to mountpath variable from inside a template using express
body: <p>Is there a clean, recomended way to access the mountpath from inside a template, so an express app can be run both standalone and as a part of another app (by means of app.use), with the paths pointing to the correct destination either way?</p>
  
  <p>Something like:</p>
  
  <pre><code>{{mountpath}}route/to/file
  </code></pre>
  
  <p>So in the case that the app is running standalone, mountpath will be <code>/</code>, and in case is running as a submodule, mountpath could be <code>/foo/</code> </p>
  
  <p>Note: I'm using handlebars.</p>