Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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>
 
PREVIOUS NEXT
Tagged: #Jinja #items #list
ADD COMMENT
Topic
Name
6+1 =