Answers for "Jinja for items in list"

0

Jinja for items in list

<ul>  # Builds a list of objects using Jinja Template tags
  {% for object in objects.all %} 
  	<li> 
    	{{ object.attribute }} 
    </li>
  {% endfor %}
</ul>
Posted by: Guest on September-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language