Added rudimentary HTTP interface

This commit is contained in:
Florian "flowdy" Heß
2017-01-15 16:27:22 +01:00
parent 6d31efee39
commit f4bcbcad6f
26 changed files with 1758 additions and 38 deletions

View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, minimum-scale=1" />
<title>TrsrDB<% if (my $t = title) { %>: <%= $t %><% } %></title>
<link rel="stylesheet" type="text/css"
href="/style.css" media="screen,projection">
% my $scripts = stash 'addScripts';
% for my $script ( @$scripts ) {
<script src="/scripts/<%= $script %>.js"></script>
% }
</head>
<body>
% if ( my $t = title ) {
<h1>Treasure DB: <%= $t %></h1>
% }
<%= content %>
</body>
</html>