X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a80f46810bbfd38d8f40d2e2328cbcfd50e45c86..1676865de8be5f051b97cc3d4b4fcc959732d3ef:/codec.plp
diff --git a/codec.plp b/codec.plp
index 2cc454a..27a6cb7 100644
--- a/codec.plp
+++ b/codec.plp
@@ -1,5 +1,7 @@
<(common.inc.plp)><:
+my @feat = split m{/+}, $Request || 'default';
+
Html({
title => 'Codecs',
version => '1.0',
@@ -32,9 +34,11 @@ print "\n
";
print '', $_->{available} for @{$info->{codec}}{@codecs};
say '';
-print ' |
';
-for my $feat (sort keys %{$info->{feature}}) {
- my $featinfo = $info->{feature}->{$feat};
+while (defined (my $feat = shift @feat)) {
+ my $featinfo = $info->{feature}->{$feat} or next;
+ unshift @feat, @{$_} for $featinfo->{children} // ();
+ $featinfo->{score} or $featinfo->{data} or next;
+ print '' if $featinfo->{children};
printf '%s', $featinfo->{name} // $feat;
printf(' | %s',
(map { $_ && $BOOLSCORE{$_} || $_ || 0 } $featinfo->{score}->{$_}),
|
---|