Init
This commit is contained in:
23
app/templates/base.html
Normal file
23
app/templates/base.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% load django_vite %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
{% block base_css %}
|
||||
{% block css %}{% endblock %}
|
||||
<link rel="stylesheet" href="{% vite_asset_url "style/main.css" %}">
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}<p id="app">hello world</p>{% endblock %}
|
||||
{% block base_js %}
|
||||
{% vite_hmr_client %}
|
||||
{% vite_asset "entrypoint/app.js" %}
|
||||
{% block js %}{% endblock %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user