fastapi-dynamic-response/templates/another_example.html
Waylon S. Walker a426df12c0 init
2024-10-13 20:31:03 -05:00

24 lines
474 B
HTML

<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<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>
</body>
</html>