diff options
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm')
-rw-r--r-- | IkiWiki/Plugin/skeleton.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm index c9a7a421d..89308c45f 100644 --- a/IkiWiki/Plugin/skeleton.pm +++ b/IkiWiki/Plugin/skeleton.pm @@ -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 (@) { #{{{ |