add plugin safe/rebuild info (part 3 of 3)
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm.example
index 49c4d88f288d024cfed3dd31b62392ea0b201fb4..7878d7c2b09a7eda151d22f07e9da107a1b60154 100644 (file)
@@ -12,6 +12,7 @@ sub import { #{{{
        hook(type => "getopt", id => "skeleton",  call => \&getopt);
        hook(type => "getsetup", id => "skeleton",  call => \&getsetup);
        hook(type => "checkconfig", id => "skeleton", call => \&checkconfig);
        hook(type => "getopt", id => "skeleton",  call => \&getopt);
        hook(type => "getsetup", id => "skeleton",  call => \&getsetup);
        hook(type => "checkconfig", id => "skeleton", call => \&checkconfig);
+       hook(type => "refresh", id => "skeleton", call => \&refresh);
        hook(type => "needsbuild", id => "skeleton", call => \&needsbuild);
        hook(type => "preprocess", id => "skeleton", call => \&preprocess);
        hook(type => "filter", id => "skeleton", call => \&filter);
        hook(type => "needsbuild", id => "skeleton", call => \&needsbuild);
        hook(type => "preprocess", id => "skeleton", call => \&preprocess);
        hook(type => "filter", id => "skeleton", call => \&filter);
@@ -41,6 +42,10 @@ sub getopt () { #{{{
 
 sub getsetup () { #{{{
        return
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
                skeleton => {
                        type => "boolean",
                        example => 0,
                skeleton => {
                        type => "boolean",
                        example => 0,
@@ -54,6 +59,10 @@ sub checkconfig () { #{{{
        debug("skeleton plugin checkconfig");
 } #}}}
 
        debug("skeleton plugin checkconfig");
 } #}}}
 
+sub refresh () { #{{{
+       debug("skeleton plugin refresh");
+} #}}}
+
 sub needsbuild () { #{{{
        debug("skeleton plugin needsbuild");
 } #}}}
 sub needsbuild () { #{{{
        debug("skeleton plugin needsbuild");
 } #}}}