change plugin interface to use named parameters for flexability
[ikiwiki] / IkiWiki / Plugin / skeleton.pm
1 #!/usr/bin/perl
2 # Ikiwiki skeleton plugin. Replace "skeleton" with the name of your plugin
3 # in the lines below, and flesh out the code to make it do something.
4 package IkiWiki::Plugin::skeleton;
5
6 use warnings;
7 use strict;
8 use IkiWiki;
9
10 sub import { #{{{
11         IkiWiki::hook(type => "preprocess", id => "skeleton", 
12                 call => \&preprocess);
13 } # }}}
14
15 sub preprocess (@) { #{{{
16         my %params=@_;
17
18         return "skeleton plugin result";
19 } # }}}
20
21 1