2 # Ikiwiki skeleton plugin. Replace "skeleton" with the name of your plugin
3 # in the lines below, remove hooks you don't use, and flesh out the code to
4 # make it do something.
5 package IkiWiki::Plugin::skeleton;
12 IkiWiki::hook(type => "checkconfig", id => "skeleton",
13 call => \&checkconfig);
14 IkiWiki::hook(type => "preprocess", id => "skeleton",
15 call => \&preprocess);
16 IkiWiki::hook(type => "filter", id => "skeleton",
18 IkiWiki::hook(type => "sanitize", id => "skeleton",
20 IkiWiki::hook(type => "delete", id => "skeleton",
22 IkiWiki::hook(type => "change", id => "skeleton",
24 IkiWiki::hook(type => "cgi", id => "skeleton",
28 sub checkconfig () { #{{{
29 IkiWiki::debug("skeleton plugin checkconfig");
32 sub preprocess (@) { #{{{
35 return "skeleton plugin result";
41 IkiWiki::debug("skeleton plugin running as filter");
43 return $params{content};
46 sub sanitize ($) { #{{{
49 IkiWiki::debug("skeleton plugin running as a sanitizer");
57 IkiWiki::debug("skeleton plugin told that files were deleted: @files");
63 IkiWiki::debug("skeleton plugin told that changed files were rendered: @files");
69 IkiWiki::debug("skeleton plugin running in cgi");