X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b22f63ba31441200ca915c64445d5a87d146c327..d98df9cb4fb14f54acb85c59fcff90800be73e01:/countries.plp?ds=inline diff --git a/countries.plp b/countries.plp index 60a392d..c11a3e8 100644 --- a/countries.plp +++ b/countries.plp @@ -2,22 +2,21 @@ 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 +45,7 @@ my $cc = do 'countries.inc.pl'; } $cell = showflag($code) // join(' ', - map { showflag($_) || $_ } split / /, $ref + map { showflag($_) || $_ } split(/ /, $ref) ); } else { @@ -89,3 +88,26 @@ my $cc = do 'countries.inc.pl'; +<: exit unless exists $get{v}; :> + +