1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:39:26 +00:00

Migrated from ejs to handlebars

This commit is contained in:
2022-01-25 20:05:20 +00:00
parent 714da18c41
commit 5857ed46f4
9 changed files with 126 additions and 232 deletions

4
views/error.hbs Normal file
View File

@@ -0,0 +1,4 @@
<h1>Error</h1>
<span class='code'>{{ code }}</span>
<span class='msg'>{{ msg }}</span>

0
views/index.hbs Normal file
View File

7
views/layouts/main.hbs Normal file
View File

@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang='en'>
{{> head title=title }}
<body>
{{{ body }}}
</body>
</html>

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<%- include('../partials/head', { title: 'Stratos - Error' }) %>
</head>
<body>
<h1>Error</h1>
<span class='code'><%= code %></span>
<span class='msg'><%= msg %></span>
</body>
</html>

View File

@@ -1,9 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<%- include('../partials/head', { title: 'Stratos - Home' }) %>
</head>
<body>
<h1>Homepage</h1>
</body>
</html>

View File

@@ -13,5 +13,5 @@
<link rel='stylesheet' href='/css/main.css'>
<!-- Title -->
<title><%= title %></title>
<title>{{ title }}</title>
</head>