git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perl: silence warning about skipping dropped features
[sheet.git]
/
common.inc.plp
diff --git
a/common.inc.plp
b/common.inc.plp
index 898e8bbcd5dd24774d6a32f166f14dae0def9fee..6ea11976106b6363bd8b0d88dfca1b267cae6476 100644
(file)
--- a/
common.inc.plp
+++ b/
common.inc.plp
@@
-133,6
+133,7
@@
sub Html {
# default fallbacks
$meta->{stylesheet} ||= [qw( light dark circus mono red )];
$meta->{charset} ||= 'utf-8';
# 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 $_ = [$_]
# convert options to arrays
ref $_ eq 'ARRAY' or $_ = [$_]
@@
-161,7
+162,7
@@
sub Html {
PLP_START {
# leading output
say '<!DOCTYPE html>';
PLP_START {
# leading output
say '<!DOCTYPE html>';
- say
'<html lang="en">'
;
+ say
qq(<html lang="$meta->{lang}">)
;
say '';
say '<head>';
say sprintf '<meta http-equiv="content-type" content="%s">', $_
say '';
say '<head>';
say sprintf '<meta http-equiv="content-type" content="%s">', $_