X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b22f63ba31441200ca915c64445d5a87d146c327..HEAD:/countries.plp diff --git a/countries.plp b/countries.plp index 60a392d..efd2f25 100644 --- a/countries.plp +++ b/countries.plp @@ -2,22 +2,22 @@ Html({ title => 'country code cheat sheet', - version => '1.2', + version => '1.3', description => "Table of ISO-3166-1 country codes with the names of reserved territories.", keywords => [qw'country code cc tld cctld continent territory land table'], stylesheet => [qw'light dark circus mono red'], - data => ['countries.inc.pl'], + data => ['data/countries.inc.pl'], }); :>

ISO-3166-1α2 Country codes

<: -my $cc = do 'countries.inc.pl'; +my $cc = Data('data/countries'); { - printf ''; + printf '
'; print ''; for my $section (qw{thead}) { print "<$section>
↳"; @@ -46,7 +46,7 @@ my $cc = do 'countries.inc.pl'; } $cell = showflag($code) // join(' ', - map { showflag($_) || $_ } split / /, $ref + map { showflag($_) || $_ } split(/ /, $ref) ); } else { @@ -89,3 +89,26 @@ my $cc = do 'countries.inc.pl'; +<: exit unless exists $get{v}; :> + +