{%- for drink_attribute, ingredient in drink.items() if drink_attribute.startswith('strIngredient') and ingredient %} <td>{{ ingredient }}</td> {%- endfor %}