X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f3ce23b458ade0fd2f8d634e2e3c380023bbb4e5..c2b517c69794577ef9e70f2ad65d9a7393a51db5:/keyboard.plp diff --git a/keyboard.plp b/keyboard.plp index 92c2aa2..36ccaca 100644 --- a/keyboard.plp +++ b/keyboard.plp @@ -1,41 +1,37 @@ <(common.inc.plp)><: +my $mode = lc($Request || 'keyboard'); +my $include = "$mode.eng"; + +my $info = eval { Data($include) } || {}; +$mode = $info->{title} // $mode; + Html({ - title => 'keyboard cheat sheet', - version => '1.0', + title => "\L$mode\E keyboard cheat sheet", + version => $info->{version} || '0.1', + description => $info->{description} // + ["Keyboard cheat sheet for the default controls of $mode."], + keywords => [@{ $info->{keywords} // [] }, qw' + sheet cheat reference overview keyboard control commands shortkey + '], stylesheet => [qw( light dark circus mono red )], keys => 1, + data => ["$include.inc.pl"], }); -:> -
$modenot available", + '404 request not found', +); -<: -use Shiar_Sheet::Keyboard 2.07; +say "
$_
" for $info->{intro} // (); +say "