fastapi-dynamic-response/templates/another_example.html
Waylon S. Walker 16e207000f add tailwindcss
2024-10-14 19:56:41 -05:00

20 lines
403 B
HTML

{% extends "base.html" %}
{% block title %}Another Example{% endblock %}
{% block content %}
<h2>Example</h2>
<p>
{{ data.message }}
</p>
<h3>Items</h3>
<p>
there are {{ data.get('items', [])|length }} items in the list
</p>
<ul>
{% for item in data.get('items', []) %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{% endblock %}