]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/skeleton.pm
* Allow discussion links on pages to be turned off with --no-discussion.
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm
index cae4c02ece0baa0f98da892aec943dd1f84b7e1d..346dfa5ffb1210897dd3283a51d30b4c083aa9db 100644 (file)
@@ -15,10 +15,12 @@ sub import { #{{{
                call => \&preprocess);
        IkiWiki::hook(type => "filter", id => "skeleton", 
                call => \&filter);
+       IkiWiki::hook(type => "sanitize", id => "skeleton", 
+               call => \&sanitize);
        IkiWiki::hook(type => "delete", id => "skeleton", 
                call => \&delete);
-       IkiWiki::hook(type => "render", id => "skeleton", 
-               call => \&render);
+       IkiWiki::hook(type => "change", id => "skeleton", 
+               call => \&change);
        IkiWiki::hook(type => "cgi", id => "skeleton", 
                call => \&cgi);
 } # }}}
@@ -33,11 +35,19 @@ sub preprocess (@) { #{{{
        return "skeleton plugin result";
 } # }}}
 
-sub filter ($) { #{{{
-       my $content=shift;
+sub filter (@) { #{{{
+       my %params=@_;
        
        IkiWiki::debug("skeleton plugin running as filter");
 
+       return $params{content};
+} # }}}
+
+sub sanitize ($) { #{{{
+       my $content=shift;
+       
+       IkiWiki::debug("skeleton plugin running as a sanitizer");
+
        return $content;
 } # }}}
 
@@ -47,10 +57,10 @@ sub delete (@) { #{{{
        IkiWiki::debug("skeleton plugin told that files were deleted: @files");
 } #}}}
 
-sub render (@) { #{{{
+sub change (@) { #{{{
        my @files=@_;
 
-       IkiWiki::debug("skeleton plugin told that files were rendered: @files");
+       IkiWiki::debug("skeleton plugin told that changed files were rendered: @files");
 } #}}}
 
 sub cgi ($) { #{{{