X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f1614fb2f16c1e75c8dcef8a9d3e1e46cc236bee..28151a28db84c6d6018232f36c0003ecd562b3f0:/unicode.plp diff --git a/unicode.plp b/unicode.plp index 7207b03..ac63170 100644 --- a/unicode.plp +++ b/unicode.plp @@ -1,13 +1,5 @@ -<: -use utf8; -use strict; -use warnings; -no warnings 'qw'; # that's not a comment, it's a NUMBER SIGN -use open IO => ':utf8'; - -our $VERSION = 'v1.0'; - -$header{content_type} = 'text/html; charset=utf-8'; +<(common.inc.plp)><: + our $VERSION = 'v1.0'; :> @@ -16,13 +8,7 @@ $header{content_type} = 'text/html; charset=utf-8'; digraph cheat sheet -<: - my %styles = map {$_ => $_} qw(dark circus mono red terse); - our $style = exists $get{style} && $styles{$get{style}} || 'light'; - printf(qq{\n}, - $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_ - ) for keys %styles; -:> +<:= stylesheet(qw'light dark') :>