title: How to create headers that are also links with a for loop using jinja2 in flask app?
body: <p>I am trying to display the results from a search that returns in dataframe format such as:</p>
  <pre><code> data = {'title': ['Green Moon', 'Blue Dog', 'Orange Sun'],
           'url':  ['exampele.com/gm', 'example.com/bd', 'example.com/os'],
           'text': ['some string 1', 'some string 2', 'some string 3'}
   data = pd.DataFrame(data)
  </code></pre>
  <p>I want to display each title as a hyperlink to the url and then the context below it.</p>
  <p>I had tried creating lists out of each column and using a for loop but that doesn't allow me to create a hyperlink:</p>
  <pre><code>urls = data.url.tolist()
  texts = data.text.tolist()
  titles = data.title.tolist()
  </code></pre>
  <p><strong>example.html</strong></p>
  <pre><code> {% extends 'base.html' %}
  
   {% block content %}
      {% for title in titles %}
         {{ title }}
      {% endfor %}
      {% for text in texts %}
         {{ text }}
      {% endfor %}
   {% endblock %}
  </code></pre>
  <p>Expected Output with each title leading to the specified url:</p>
  <pre><code> Green Moon
   some string 1
  
   Blue Dog
   some string 2
  
   Orange Sun
   some string 3
  </code></pre>