call => \&htmlize);
IkiWiki::hook(type => "sanitize", id => "skeleton",
call => \&sanitize);
+ IkiWiki::hook(type => "format", id => "skeleton",
+ call => \&format);
IkiWiki::hook(type => "pagetemplate", id => "skeleton",
call => \&pagetemplate);
IkiWiki::hook(type => "delete", id => "skeleton",
call => \&change);
IkiWiki::hook(type => "cgi", id => "skeleton",
call => \&cgi);
+ IkiWiki::hook(type => "savestate", id => "savestate",
+ call => \&savestate);
} # }}}
sub getopt () { #{{{
return $params{content};
} # }}}
-sub htmlize ($) { #{{{
- my $content=shift;
+sub htmlize (@) { #{{{
+ my %params=@_;
IkiWiki::debug("skeleton plugin running as htmlize");
- return $content;
+ return $params{content};
} # }}}
-sub sanitize ($) { #{{{
- my $content=shift;
+sub sanitize (@) { #{{{
+ my %params=@_;
IkiWiki::debug("skeleton plugin running as a sanitizer");
- return $content;
+ return $params{content};
+} # }}}
+
+sub format (@) { #{{{
+ my %params=@_;
+
+ IkiWiki::debug("skeleton plugin running as a formatter");
+
+ return $params{content};
} # }}}
sub pagetemplate (@) { #{{{
IkiWiki::debug("skeleton plugin running in cgi");
} #}}}
+sub savestate () { #{{{
+ IkiWiki::debug("skeleton plugin running in savestate");
+} #}}}
+
1