]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/skeleton.pm
* Add a missing -n to tla undo call.
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm
index e63bab6d76e04fed3e6b22e5fce0b7ca69ced692..5947ebb4c2fdc974dfa852ddb1add9b628a0e2d5 100644 (file)
@@ -21,6 +21,8 @@ sub import { #{{{
                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", 
@@ -29,7 +31,7 @@ sub import { #{{{
                call => \&change);
        IkiWiki::hook(type => "cgi", id => "skeleton", 
                call => \&cgi);
-       IkiWiki::hook(type => "cgi", id => "savestate", 
+       IkiWiki::hook(type => "savestate", id => "savestate", 
                call => \&savestate);
 } # }}}
 
@@ -55,20 +57,28 @@ sub filter (@) { #{{{
        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 (@) { #{{{