]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/skeleton.pm
* Add toc (table of contents) plugin.
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm
index acbc88994048e31e6020f8f11bf8cba98711a000..4683b00ba707a51809001dd3baa79f6068a1bf3c 100644 (file)
@@ -9,6 +9,8 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
+       IkiWiki::hook(type => "getopt", id => "skeleton", 
+               call => \&getopt);
        IkiWiki::hook(type => "checkconfig", id => "skeleton", 
                call => \&checkconfig);
        IkiWiki::hook(type => "preprocess", id => "skeleton", 
@@ -19,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", 
@@ -27,8 +31,14 @@ sub import { #{{{
                call => \&change);
        IkiWiki::hook(type => "cgi", id => "skeleton", 
                call => \&cgi);
+       IkiWiki::hook(type => "savestate", id => "savestate", 
+               call => \&savestate);
 } # }}}
 
+sub getopt () { #{{{
+       IkiWiki::debug("skeleton plugin getopt");
+} #}}}
+
 sub checkconfig () { #{{{
        IkiWiki::debug("skeleton plugin checkconfig");
 } #}}}
@@ -63,6 +73,14 @@ sub sanitize ($) { #{{{
        return $content;
 } # }}}
 
+sub format ($) { #{{{
+       my $content=shift;
+       
+       IkiWiki::debug("skeleton plugin running as a formatter");
+
+       return $content;
+} # }}}
+
 sub pagetemplate (@) { #{{{
        my %params=@_;
        my $page=$params{page};
@@ -89,4 +107,8 @@ sub cgi ($) { #{{{
        IkiWiki::debug("skeleton plugin running in cgi");
 } #}}}
 
+sub savestate () { #{{{
+       IkiWiki::debug("skeleton plugin running in savestate");
+} #}}}
+
 1