Skip to content

Commit 7c9fac2

Browse files
authored
Merge pull request #2 from WebDevCF2018/lasuite
good Twig's base.html.twig
2 parents d74a7f4 + ef75f99 commit 7c9fac2

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

view/base.html.twig

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<title>Titre</title>
6-
</head>
7-
<body>
8-
coucou {{ name }}, Nous somme les {{ date }}
9-
</body>
10-
</html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{% block title %}Welcome {{name}}{% endblock %}</title>
6+
{% block stylesheets %}{% endblock %}
7+
</head>
8+
<body>
9+
{% block body %}
10+
Welcome {{name}}, the date is {{ date }}
11+
{% endblock %}
12+
{% block javascripts %}{% endblock %}
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)