#4: add base template; extend base template in views
This commit is contained in:
parent
fe7fce76c0
commit
b7311f2308
7 changed files with 110 additions and 62 deletions
12
templates/base.html
Normal file
12
templates/base.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{% block title %}Tofu{% endblock %} - Tofu</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Tofu</h1>
|
||||
|
||||
{% block content %}No content.{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in a new issue