git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyboard/altgr: atari graphics (atascii)
[sheet.git]
/
sample.plp
diff --git
a/sample.plp
b/sample.plp
index 79df0335bd95306f384183de836a347fd8aecc73..36ad2b424e995697c25e7a6602e94b8c18cb0158 100644
(file)
--- a/
sample.plp
+++ b/
sample.plp
@@
-1,15
+1,13
@@
<(common.inc.plp)><:
<(common.inc.plp)><:
-my $textinc = 'data/unicode-sampler/unicode.txt';
-my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's');
-my $preview = "$proto$ENV{HTTP_HOST}/sample.png";
+my $textinc = 'sample.txt';
Html({
title => "unicode sampler",
version => '2.1',
stylesheet => [qw'light dark mono red'],
data => [$textinc],
Html({
title => "unicode sampler",
version => '2.1',
stylesheet => [qw'light dark mono red'],
data => [$textinc],
-
raw => qq(<meta property="og:image" content="$preview" />)
,
+
image => 'sample.png'
,
});
open my $source, '<', $textinc
});
open my $source, '<', $textinc
@@
-19,8
+17,12
@@
local $/ = "\n\n";
my $top = readline $source;
my ($title, $hr, $intro) = split /\n(\pP)\1+\n/, $top, 2;
say "<h1>$title</h1>";
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;
say '<pre>';
print $intro;