Example 3 - HTML Template

PHOTO EMBED

Thu Sep 11 2025 21:55:22 GMT+0000 (Coordinated Universal Time)

Saved by @Masiaga01

<!-- patients.html -->
<h1>Hospital Patient Records</h1>

<ul>
    {% for patient in patients %}
        <li>
            <strong>{{ patient.first_name }} {{ patient.last_name }}</strong><br>
            Diagnosis: {{ patient.diagnosis }}
        </li>
    {% endfor %}
</ul>
content_copyCOPY