title: How to load a javascript or css file into a BottlePy template?
body: <p>I am trying to return a html template with BottlePy. And this works fine. But if I insert a javascript file like this in my tpl-file:</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/main.js" charset="utf-8"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I get an 404 error.
  <em>(Failed to load resource: the server responded with a status of 404 (Not Found))</em></p>
  
  <p>Does anyone know how to fix this problem?</p>
  
  <p>Here is my script file:</p>
  
  <pre><code>from bottle import route, run, view
  
  @route('/')
  @view('index')
  def index():
      return dict()
  run(host='localhost', port=8080)
  </code></pre>
  
  <p>And that is the template file, located in "./views" subfolder.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="de"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;script type="text/javascript" src="js/main.js" charset="utf-8"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Maybe it is the "rootPath/js/main.js" from the development server where it looks for my js-file?</p>
  
  <p>The structure of the files is:</p>
  
  <pre><code>app.py
  -js
   main.js
  -views
   index.tpl
  </code></pre>
  
  <p>Thanks.</p>