X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/dc6b482b5e7e1d3d35b5193fc820c5e1afc29a6e..3f38a7192491a73a1527179cdd68218f023aed61:/countries.plp diff --git a/countries.plp b/countries.plp index 1ed8eef..870b3b3 100644 --- a/countries.plp +++ b/countries.plp @@ -2,11 +2,10 @@ Html({ title => 'country code cheat sheet', - version => '1.3', + version => '1.4', 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 => ['data/countries.inc.pl'], }); @@ -14,10 +13,10 @@ Html({

ISO-3166-1α2 Country codes

<: -my $cc = do 'data/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 'data/countries.inc.pl'; } $cell = showflag($code) // join(' ', - map { showflag($_) || $_ } split / /, $ref + map { showflag($_) || $_ } split(/ /, $ref) ); } else { @@ -89,3 +88,26 @@ my $cc = do 'data/countries.inc.pl'; +<: exit unless exists $get{v}; :> + +