Zwischenstand des vierten Praktikums:
Auslagerung des HTML-Inhalts als eigene HMTL-Datei -> funktioniert! Vererbte HMTL-Datei "index.html" von "base.html" -> funktioniert!
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %} Pla {% endblock %}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% block content %} zzz {% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}
|
||||
My_Index
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
Content der geerbten HTML-Seite
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user