unicode: reorder popular tables
[sheet.git] / source.plp
index f713a73c3cbe0631d9ccb614f479aa0bf040b057..83a583385966b1b4285c0522667959ef294af682 100644 (file)
@@ -1,22 +1,23 @@
 <(common.inc.plp)><:
-       our $VERSION = 'v1.0';
-
-:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-
-<head>
-<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<title>sheet page source code</title>
-<:= stylesheet(qw'light dark mono red') :>
-</head>
-
-<body id="source">
-<:
 
 my $source = $ENV{PATH_INFO};
 $source =~ s{^/}{};
 
+Html({
+       title => "$source source code",
+       version => 'v1.0',
+       description => !$source ? 'Index of source files for this site.' : [
+               "Source code of the $source file at this site,",
+               "with syntax highlighted and references linked."
+       ],
+       keywords => [qw'
+               sheet cheat source code perl plp html agpl
+       '],
+       stylesheet => [qw'light dark mono red'],
+});
+
+print "\n";
+
 if (not $source) {
        print "<h1>Source files</h1>";
 
@@ -77,16 +78,7 @@ else {
        else {
                print "<pre>\n", EscapeHTML(ReadFile($source)), "</pre>\n";
        }
+
+       print "\n";
 }
-:>
-<p class="footer">
-       <a href="/" rel="home">sheet.shiar.nl</a>/source.<a href="/source/source.plp"
-        rel="code" title="Written in Perl">plp</a>
-       <a href="http://git.shiar.nl/sheet.git/history/HEAD:/source.plp"
-        rel="vcs-git" title="Git repository"><:= $VERSION :></a>
-       created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
-       <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
-        title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
-</p>
 
-</html>