]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/skeleton.pm.example
Do not UTF8-escape "/" in Git's diffurl: cgit does not support this.
[git.ikiwiki.info.git] / IkiWiki / Plugin / skeleton.pm.example
index 341d678679b65706b6189d509d06e0fd77f07772..f9caef40c1f44b9c6a14d0f9b67bd3a251be5ec6 100644 (file)
@@ -26,7 +26,8 @@ sub import {
        hook(type => "templatefile", id => "skeleton", call => \&templatefile);
        hook(type => "pageactions", id => "skeleton", call => \&pageactions);
        hook(type => "delete", id => "skeleton", call => \&delete);
        hook(type => "templatefile", id => "skeleton", call => \&templatefile);
        hook(type => "pageactions", id => "skeleton", call => \&pageactions);
        hook(type => "delete", id => "skeleton", call => \&delete);
-       hook(type => "change", id => "skeleton", call => \&change);
+       hook(type => "rendered", id => "skeleton", call => \&rendered);
+       hook(type => "changes", id => "skeleton", call => \&changes);
        hook(type => "cgi", id => "skeleton", call => \&cgi);
        hook(type => "auth", id => "skeleton", call => \&auth);
        hook(type => "sessioncgi", id => "skeleton", call => \&sessioncgi);
        hook(type => "cgi", id => "skeleton", call => \&cgi);
        hook(type => "auth", id => "skeleton", call => \&auth);
        hook(type => "sessioncgi", id => "skeleton", call => \&sessioncgi);
@@ -53,7 +54,6 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
                plugin => {
                        safe => 1,
                        rebuild => undef,
-                       section => "misc",
                },
                skeleton => {
                        type => "boolean",
                },
                skeleton => {
                        type => "boolean",
@@ -73,7 +73,11 @@ sub refresh () {
 }
 
 sub needsbuild ($) {
 }
 
 sub needsbuild ($) {
+       my $needsbuild=shift;
+
        debug("skeleton plugin needsbuild");
        debug("skeleton plugin needsbuild");
+
+       return $needsbuild;
 }
 
 sub preprocess (@) {
 }
 
 sub preprocess (@) {
@@ -163,10 +167,16 @@ sub delete (@) {
        debug("skeleton plugin told that files were deleted: @files");
 }
 
        debug("skeleton plugin told that files were deleted: @files");
 }
 
-sub change (@) {
+sub rendered (@) {
+       my @files=@_;
+
+       debug("skeleton plugin told that files were rendered: @files");
+}
+
+sub changes (@) {
        my @files=@_;
 
        my @files=@_;
 
-       debug("skeleton plugin told that changed files were rendered: @files");
+       debug("skeleton plugin told that files were changed: @files");
 }
 
 sub cgi ($) {
 }
 
 sub cgi ($) {