title: AJAX-ing a file outside public folder in node.js
body: <p>I have a node.js application where I need to Ajax a file located in 'views' folder. But turns out that my jQuery code returns 404 - Not found error if the file is stored anywhere outside the public (holding static content) folder.</p>
  <p>Here's the jQuery code:</p>
  <pre><code>   $(document).ready(function(){
              $('#startButton').click(function(){
                  $('#container').load('q1.html', function(response, status, xhr){
                      alert(xhr.statusText);
                  });
              })
          })
  </code></pre>
  <p>If I place 'q1.html' in 'views' folder, then load() returns 404. It works only when I place it in the public folder (which I don't want because I don't want anyone to access the file directly from url).
  Is there a way I can place the file anywhere outside public and still get it to work?</p>