switched back to express

This commit is contained in:
BuildTools 2019-12-02 19:41:33 -05:00
parent f2e1d58dbd
commit 7c8be72801
41 changed files with 651 additions and 1519 deletions

7
views/error.twig Normal file
View file

@ -0,0 +1,7 @@
{% extends 'layout.twig' %}
{% block body %}
<h1>{{message}}</h1>
<h2>{{error.status}}</h2>
<pre>{{error.stack}}</pre>
{% endblock %}

6
views/index.twig Normal file
View file

@ -0,0 +1,6 @@
{% extends 'layout.twig' %}
{% block body %}
<h1>{{title}}</h1>
<p>Welcome to {{title}}</p>
{% endblock %}

10
views/layout.twig Normal file
View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>