X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/dc6b482b5e7e1d3d35b5193fc820c5e1afc29a6e..dbf4a34af50113bb56c5dfaae3afeb6441e0cd8d:/countries.plp?ds=sidebyside diff --git a/countries.plp b/countries.plp index 1ed8eef..c11a3e8 100644 --- a/countries.plp +++ b/countries.plp @@ -6,7 +6,6 @@ Html({ 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}; :> + +