includes
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{% block texto %} BASE {% endblock texto %}</h1>
|
||||
</body>
|
||||
{% include 'global/partials/head.html' %}
|
||||
|
||||
<h1>{% block texto %}{% endblock texto %}</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
9
aula207_ola_django/base/global/partials/head.html
Normal file
9
aula207_ola_django/base/global/partials/head.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1,12 +1,3 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>EXEMPLO 2</h1>
|
||||
</body>
|
||||
</html>
|
||||
{% extends 'global/base.html' %}
|
||||
|
||||
{% block texto %} Exemplo {% endblock texto %}
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>BLOG 2</h1>
|
||||
</body>
|
||||
</html>
|
||||
{% extends 'global/base.html' %}
|
||||
|
||||
{% block texto %} Blog {% endblock texto %}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{% extends 'global/base.html' %}
|
||||
|
||||
{% block texto %} MUDAR O TEXTO {% endblock texto %}
|
||||
{% block texto %} MUDAR O TEXTO {% endblock texto %}
|
||||
|
||||
Reference in New Issue
Block a user