title: Node JS loading js & css file in an ejs file
body: <p>My folder is like so :
  server.js
  app
  --routes.js
  views
  --ace-builds-master
     --\src-noconflict
        --ace.js
  --index.ejs</p>
  
  <p>So in 'views' is my ace editor stuff and my index.ejs file.
  I want to call ace.js in my index.ejs file. Do I need to create an app.get in my express routes like below?</p>
  
  <pre><code>app.get('/ace', function (req, res) {
    res.sendFile('\ace-builds-master\src-noconflict\ace.js');
  });
  </code></pre>
  
  <p>And in my ejs file do I write it like so:</p>
  
  <pre><code>&lt;script src="/ace" type="text/javascript" charset="utf-8"&gt; &lt;/script&gt;
  </code></pre>
  
  <p>I receive a "GET <a href="http://localhost:8080/ace" rel="nofollow">http://localhost:8080/ace</a>" when loading in browser</p>