Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
some small tweaks; center-align +/-, pmichaud++
  • Loading branch information
moritz committed Jul 25, 2011
1 parent 7701afe commit 9e8d0db
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions features.txt
@@ -1,6 +1,6 @@
= ABBREVIATIONS
rm Rakudo (branch master)
rn Rakudo (branch nom)
rm Rakudo/master
rn Rakudo/nom
n Niecza

= Basics
Expand Down
5 changes: 4 additions & 1 deletion process.pl
Expand Up @@ -85,7 +85,10 @@ sub write_html {
my @row = @$_;
$ht_row{feature} = shift @row;
$ht_row{compilers} = [ map {
{ status => $status_map{$row[$_] // ''} }
{
status => $row[$_] // '',
class => $status_map{$row[$_] // ''},
}
} 0..($index - 1) ];
push @rows, \%ht_row;
}
Expand Down
15 changes: 14 additions & 1 deletion template.html
Expand Up @@ -8,11 +8,23 @@
.implemented { background-color: green }
.partial { background-color: yellow }
.missing { background-color: red }
.implemented, .partial, .missing {
text-align: center
}
</style>

</head>
<body>
<h1>Feature comparison of Perl 6 compilers</h1>

<h2>Legend</h2>
<table>
<tr><td class="implemented">+</td> <td>implemented</td></tr>
<tr><td class="partial">+-</td><td>partially implemented</td></tr>
<tr><td class="missing">-</td> <td>not yet implemented</td></tr>
</table>

<h2>Features</h2>
<table>
<thead>
<tr>
Expand All @@ -30,7 +42,7 @@ <h1>Feature comparison of Perl 6 compilers</h1>
<%else%>
<td><%var feature%></td>
<%loop compilers%>
<td class="<%var status%>">
<td class="<%var class%>">
<%var status%>
</td>
<%/loop%>
Expand All @@ -39,6 +51,7 @@ <h1>Feature comparison of Perl 6 compilers</h1>
<%/loop%>
</tbody>
</table>

</body>
</html>

0 comments on commit 9e8d0db

Please sign in to comment.