X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/6e61c83476cae09e2a5d67742650a0f54c6bad9c..f1bebae9f4ca77ef3e1b4d3036933f29a0da1ac0:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index 898e8bb..d282f09 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -78,7 +78,7 @@ sub stylesheet { return map { sprintf( '', - $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css?1.13", $_ + $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css?1.14", $_ ) } @avail; } @@ -133,6 +133,7 @@ sub Html { # default fallbacks $meta->{stylesheet} ||= [qw( light dark circus mono red )]; $meta->{charset} ||= 'utf-8'; + $meta->{lang} ||= 'en'; # convert options to arrays ref $_ eq 'ARRAY' or $_ = [$_] @@ -141,6 +142,7 @@ sub Html { # document headers before output $header{content_type} = "text/html; charset=$meta->{charset}" unless $PLP::sentheaders; + exit if $ENV{REQUEST_METHOD} eq 'HEAD'; unshift @{ $meta->{raw} }, stylesheet($meta->{stylesheet}); push @{ $meta->{raw} }, ( @@ -161,7 +163,7 @@ sub Html { PLP_START { # leading output say ''; - say ''; + say qq(); say ''; say ''; say sprintf '', $_