]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/skeleton.pm
* Add getopt hook type, this allows plugins to add new command-line options.
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm
index acbc88994048e31e6020f8f11bf8cba98711a000..27da50e6fba80fe7c998dbbcb7b4265c56f42a76 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", 
@@ -29,6 +31,10 @@ sub import { #{{{
                call => \&cgi);
 } # }}}
 
+sub getopt () { #{{{
+       IkiWiki::debug("skeleton plugin getopt");
+} #}}}
+
 sub checkconfig () { #{{{
        IkiWiki::debug("skeleton plugin checkconfig");
 } #}}}