]> 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 d5a2125e5e3502e127ce97c9e17bfc197b13cc4a..346dfa5ffb1210897dd3283a51d30b4c083aa9db 100644 (file)
@@ -15,6 +15,8 @@ sub import { #{{{
                call => \&preprocess);
        IkiWiki::hook(type => "filter", id => "skeleton", 
                call => \&filter);
                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 => "change", id => "skeleton", 
        IkiWiki::hook(type => "delete", id => "skeleton", 
                call => \&delete);
        IkiWiki::hook(type => "change", id => "skeleton", 
@@ -33,11 +35,19 @@ sub preprocess (@) { #{{{
        return "skeleton plugin result";
 } # }}}
 
        return "skeleton plugin result";
 } # }}}
 
-sub filter ($) { #{{{
-       my $content=shift;
+sub filter (@) { #{{{
+       my %params=@_;
        
        IkiWiki::debug("skeleton plugin running as filter");
 
        
        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;
 } # }}}
 
        return $content;
 } # }}}