forked from realpython/materials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
38 lines (33 loc) · 927 Bytes
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "parent.html" %}
{% block title %}Home Blog{% endblock %}
{% block head %}
{{ super() }}
<link rel="stylesheet" href="/static/css/home.css">
{% endblock %}
{% block page_name %}Mini-Blog Page Demo{% endblock %}
{% block body %}
<div class="container">
<div class="blog">
<table>
<caption>People Blog Entries</caption>
<thead>
<tr>
<th>Creation/Update Timestamp</th>
<th>Person</th>
<th>Note</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="error hidden"></div>
{% endblock %}
{% block javascript %}
{{ super() }}
<script type="module">
// Give the imported MVC components a namespace
import MVC from "/static/js/home.js";
// Create an intentional global variable referencing the import
window.mvc = MVC;
</script>
{% endblock %}