title: Flask render_template is returning a string instead of HTML document
body: <p>I have this function:</p>
  
  <pre><code>def run():
    if request.method == 'POST':
      print(request.form['id_num'])
      # fix later                                                                                                                  
    else:
      return render_template("apprun.html")
  </code></pre>
  
  <p>Right now it is always directing to the else statement, but the render_template function is not working correctly. Instead of a fully formatted HTML page, I'm getting the code as if it were a string. Specifically, my webpage is showing the html, instead of reading the html and displaying it properly:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Rips Lab&lt;/title&gt;
  &lt;/head&gt;                                 
  &lt;body&gt;
  &lt;style type="text/css"&gt;
              html {
                  background-color: #E4E0EE;
                  }
             body {
                  font-family: "Helvetica","Arial";
                  font-size: 20px;
                  color: #000000;
                  }
  &lt;/style&gt;
  
  
  &lt;form&gt;Enter participant ID number: &lt;input type="number" name="id_num" pattern="^[0-9]*$" required&gt;&lt;/form&gt;
  &lt;br&gt;&lt;br&gt;
  
  &lt;p name="data"&gt;&lt;/p&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The folder hierarchy is correct; I have a folder called "templates" stored in the same place as the python file I'm running.</p>
  
  <p>Any idea why it's not formatted correctly?</p>