sample: serve text file as proper sample.txt page
[sheet.git] / sample.plp
index 79df0335bd95306f384183de836a347fd8aecc73..12460ec14e7db44624436747056a16bb6b4bc697 100644 (file)
@@ -1,6 +1,6 @@
 <(common.inc.plp)><:
 
-my $textinc = 'data/unicode-sampler/unicode.txt';
+my $textinc = 'sample.txt';
 my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's');
 my $preview = "$proto$ENV{HTTP_HOST}/sample.png";
 
@@ -19,8 +19,12 @@ local $/ = "\n\n";
 my $top = readline $source;
 my ($title, $hr, $intro) = split /\n(\pP)\1+\n/, $top, 2;
 say "<h1>$title</h1>";
-printf '<p>HTML display of <a href="%s">plain text</a>', $textinc;
-say ' intended for monospaced (terminal) output.</p>';
+say <<".";
+<p>HTML display of <a href="/$textinc">plain text</a>
+intended for monospaced (terminal) output.
+Compare an expected rendering of the <a href="/sample.png">overview</a>.
+</p>
+.
 
 say '<pre>';
 print $intro;