Python Forum
How can I enter 2 jinjia variables in this hyperlink?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I enter 2 jinjia variables in this hyperlink?
#1
I would like to insert the data from two "zipped" lists into a hyperlink. In the following code, the DATA list is what I want the user to see in the link and the NUMBER list is the variable that I would like to pass to a new route. I've tried for hours but can't seem to get the syntax right on this. Does anyone know what is wrong with this code:

 {% for data, number in zip %}
    <p><a href="{{ url_for('view_post', number={{number}}') }}">> {{data}}</a></p>
    {% endfor %}  
Thanks!
Reply


Messages In This Thread
How can I enter 2 jinjia variables in this hyperlink? - by Ulnie - Oct-06-2020, 01:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  find a hyperlink in Gmail body python 3(imap and selenium) taomihiranga 1 8,211 Dec-30-2020, 05:31 PM
Last Post: Gamer1057
  Hyperlink Click is not working in Selenium webdriver rajeev1729 0 2,039 May-02-2020, 11:21 AM
Last Post: rajeev1729

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020