feature: Move to ejs instead of twig

This commit is contained in:
Keith Solomon
2025-05-24 11:11:04 -05:00
parent 969760ac5d
commit bd7e54d7c7
9 changed files with 233 additions and 91 deletions

3
views/error.ejs Normal file
View File

@@ -0,0 +1,3 @@
<h1><%= message %></h1>
<h2><%= error.status %></h2>
<pre><%= error.stack %></pre>

View File

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

12
views/index.ejs Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<h1 class="text-4xl mb-2"><%= title %></h1>
<hr class="my-4">
<p>Welcome to <%= title %></p>
</body>
</html>

View File

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

View File

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