title: Dropdown menu in Flask/Jinja from list
body: <p>I'm trying to write a simple dropdown menu from a list in flask.
  For some reason, the dropdown list is empty... I'd appreciate all hints :-)</p>
  
  <p><strong>app.py</strong> (fragment)</p>
  
  <pre><code>@app.route("/getLigand", methods=["GET","POST"])
  def dropdown():
      colours = ["Red", "Blue", "Black", "Orange"]
      return render_template("run_ligand.html", colours=colours)
  </code></pre>
  
  <p><strong>run_ligand.html</strong> (fragment)</p>
  
  <pre><code>&lt;form name="Item_1" action="/getLigand" method="POST"&gt;
      &lt;label for="exampleFormControlFile2"&gt;Choose colour&lt;/label&gt;
          &lt;select name=colours&gt;
              {% for colour in colours %}
                  &lt;option value="{{colour}}" SELECTED&gt;{{colour}}&lt;/option&gt;
              {% endfor %}     
          &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>