]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/testpagespec.pm
Provide a UUID in edittemplate templates.
[ikiwiki.git] / IkiWiki / Plugin / testpagespec.pm
index 4faef7be197a8b20362132521ae67de2976a3ad8..440fca33be02cc6cf91ff9072c725d936571b334 100644 (file)
@@ -3,13 +3,22 @@ package IkiWiki::Plugin::testpagespec;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
-sub import { #{{{
+sub import {
+       hook(type => "getsetup", id => "testpagespec", call => \&getsetup);
        hook(type => "preprocess", id => "testpagespec", call => \&preprocess);
-} # }}}
+}
 
-sub preprocess (@) { #{{{
+sub getsetup () {
+       return
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+}
+
+sub preprocess (@) {
        my %params=@_;
        
        foreach my $param (qw{match pagespec}) {
@@ -28,6 +37,6 @@ sub preprocess (@) { #{{{
        else {
                return "no match: $ret";
        }
-} # }}}
+}
 
 1