]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/skeleton.pm.example
add padding between inlined page title and content
[git.ikiwiki.info.git] / IkiWiki / Plugin / skeleton.pm.example
index 716ba63ddd480f1a8b69cd530cff40a739e30c8c..f844ddb91ddaa96680094d792df96af2ddd4a229 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,9 +42,13 @@ sub getopt () { #{{{
 
 sub getsetup () { #{{{
        return
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
                skeleton => {
                        type => "boolean",
                skeleton => {
                        type => "boolean",
-                       default => 0,
+                       example => 0,
                        description => "example option",
                        safe => 0,
                        rebuild => 0,
                        description => "example option",
                        safe => 0,
                        rebuild => 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");
 } #}}}
@@ -156,7 +165,7 @@ sub auth ($$) { #{{{
        debug("skeleton plugin running in auth");
 } #}}}
 
        debug("skeleton plugin running in auth");
 } #}}}
 
-sub sessionncgi ($$) { #{{{
+sub sessioncgi ($$) { #{{{
        my $cgi=shift;
        my $session=shift;
 
        my $cgi=shift;
        my $session=shift;