jinja2 nested for loops two lists
问题 I have the following code that is not rendering the way I would like on the html front end. {% for image in images %} {% for title in titles %} <div class="card" style="width: 18rem;"> <img src="{{image}}" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">{{title}}</h5> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> {% endfor %} {%