]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/skeleton.pm
change plugin interface to use named parameters for flexability
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm
index c9a7a421d4c5b67e16cd14162f735f375a16e684..89308c45fb973fbf3a6643a14d86b6f2e3cc684b 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 # Ikiwiki skeleton plugin. Replace "skeleton" with the name of your plugin
-# in the lines below, and flesh out the methods to make it do something.
+# in the lines below, and flesh out the code to make it do something.
 package IkiWiki::Plugin::skeleton;
 
 use warnings;
@@ -8,7 +8,8 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "skeleton", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "skeleton", 
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{