Add template
This commit is contained in:
parent
4bee273216
commit
2d1d5b66a9
8 changed files with 727 additions and 44 deletions
15
views/layout.html.tera
Normal file
15
views/layout.html.tera
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Tera Demo - {{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% block content %}{% endblock content %}
|
||||
|
||||
<footer>
|
||||
<a href="/">Home</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
10
views/tasks/index.html.tera
Normal file
10
views/tasks/index.html.tera
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends "layout" %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Here are your items:</h3>
|
||||
<ul>
|
||||
{% for task in tasks %}
|
||||
<li>{{ task.id }} {{ task.description }} {{ task.completed }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue