X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/e1c15e98e78002475bc637d1a5848b45414b9e41..dc650a4e69e5ed4eb42736e37142393782ef4e04:/codec.plp?ds=inline
diff --git a/codec.plp b/codec.plp
index 2349b1d..5c3e572 100644
--- a/codec.plp
+++ b/codec.plp
@@ -16,31 +16,38 @@ Html({
image audio video
'],
stylesheet => [qw'light circus dark red'],
- data => [qw'codec.inc.pl'],
- raw => '',
+ data => ["codec-$page.inc.pl"],
+ raw => '',
});
-my $info = do "codec-$page.inc.pl";
+my $info = Data("codec-$page");
$info and %{$info} > 1
or Abort("Requested codec type $page
not available", '404 request not found', $@ // $!);
say "
$_
" for $info->{intro} // (); my %BOOLSCORE = (y => [5, 'â'], n => [1, 'â'], 0 => [0, 'n/a']); :>feature <: my @codecs = sort { $info->{codec}->{$a}->{available} <=> $info->{codec}->{$b}->{available} } keys $info->{codec}->%*; +my @codeccols = @{$info->{codec}}{@codecs}; -print ' | ', $_->{name} for @{$info->{codec}}{@codecs}; -print "\n | |||
---|---|---|---|---|
', $_->{available} for @{$info->{codec}}{@codecs};
+{
+ print '';
+say "\t", ' | ', $_->{name} for @codeccols;
+print ' | ', $_->{available} for @codeccols;
say ' | | ', $data; } say ' | ';