Skip to content

Commit 7bf8698

Browse files
committed
Adapt to tutorial code
1 parent 8289e01 commit 7bf8698

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

fastapi-jinja2-template/templates/base.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>{% block title %}Color Palette Generator{% endblock %}</title>
5+
<title>Random Color Generator</title>
66
<link href="/static/style.css" rel="stylesheet">
77
</head>
88
<body>
9-
<main>
10-
{% block content %}{% endblock content %}
11-
</main>
9+
{% block content %}{% endblock content %}
1210
<script src="/static/script.js"></script>
1311
</body>
1412
</html>

fastapi-jinja2-template/templates/color.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{% extends "base.html" %}
22

3-
{% block title %}Random Color: {{ color }}{% endblock %}
4-
53
{% block content %}
64
<style>
75
body {

0 commit comments

Comments
 (0)