Intitial project structure with express.js
This commit is contained in:
7
views/index/dashboard.twig
Normal file
7
views/index/dashboard.twig
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends 'layouts/default.twig' %}
|
||||
|
||||
{% block title %}Dashboard{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>This is the dashboard!</p>
|
||||
{% endblock %}
|
12
views/layouts/default.twig
Normal file
12
views/layouts/default.twig
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{% block title %}{% endblock %} | Leviathan</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user