- my @az = map { @$_ } grep { ref $_ eq 'ARRAY' } @table;
- print $glyphs->table(exists $get{uc} ? [map {s/\s.//; uc} @az] : \@az);
+ say '<table class="glyphs">';
+ for my $row (pairs @table) {
+ my ($title, $cells) = @{$row};
+ printf '<tr id="%s">', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr;
+ say '<th>', $title;
+ say "\t", '<td>' x !/^<td/, $_ for @{$cells};
+ }
+ say "</table>\n";