while($request->Accept() >= 0) {
my $cgi = CGI->new;
+ my $vars = {
+
+ };
+
my $path = $ENV{'REQUEST_URI'} // '/';
print $cgi->header(
-Content_Type => 'text/html',
-charset => 'UTF-8',
);
-
print %static{$path} // %static{''};
}
}
page => \%Triple::page,
sitename => $sitename,
version => $version,
- description => '',
};
foreach my $key (keys %page) {
my @set = @{$page{$key}};
next if $set[0] != STATIC_PAGE;
syslog("info", "Marking Static '$key'");
$vars->{"uri"} = "$key";
+ $vars->{"description"} = "$set[3]";
my $temporary;
$template->process($set[1], $vars, \$temporary) or syslog("info", $template->error());
$static{$key} = $temporary;