overhaul keyboard module include syntax
[sheet.git] / mutt.plp
index ec4d0a2320aa86b0e29724fd62a9076cdb4e5b4a..f3909fea5d1ac60ea1f32b9e348ca46f73e311c3 100644 (file)
--- a/mutt.plp
+++ b/mutt.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'mutt cheat sheet',
-       version => 'v1.0',
+       version => 'v1.1',
        description => [
                "Cheat sheet for the Mutt e-mail client,",
                "showing the default binding for each key.",
@@ -30,8 +30,10 @@ Html({
 </li>
 
 <:
-use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
+use Shiar_Sheet::Keyboard 2;
+my $info = do 'mutt.eng.inc.pl' or die $@;
+$info->{def} = do 'mutt.inc.pl';
+my $keys = Shiar_Sheet::Keyboard->new($info);
 $keys->map($get{map}) or undef $get{map};
 $keys->print_rows($get{rows});
 :>