add refresh hook
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jul 2008 19:04:34 +0000 (15:04 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jul 2008 19:04:34 +0000 (15:04 -0400)
IkiWiki/Plugin/skeleton.pm.example

index 1af8e4e9df3b0903cd1341327f606fd4599afcde..10c7002e478919ca5b84a74549350ecc815a5377 100644 (file)
@@ -11,6 +11,7 @@ use IkiWiki 2.00;
 sub import { #{{{
        hook(type => "getopt", id => "skeleton",  call => \&getopt);
        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);
@@ -42,6 +43,10 @@ sub checkconfig () { #{{{
        debug("skeleton plugin checkconfig");
 } #}}}
 
+sub refresh () { #{{{
+       debug("skeleton plugin refresh");
+} #}}}
+
 sub needsbuild () { #{{{
        debug("skeleton plugin needsbuild");
 } #}}}