2 package IkiWiki::Plugin::testpagespec;
9 hook(type => "getsetup", id => "testpagespec", call => \&getsetup);
10 hook(type => "preprocess", id => "testpagespec", call => \&preprocess);
24 foreach my $param (qw{match pagespec}) {
25 if (! exists $params{$param}) {
26 error sprintf(gettext("%s parameter is required"), $param);
30 add_depends($params{page}, $params{pagespec});
32 my $ret=pagespec_match($params{match}, $params{pagespec},
33 location => $params{page});
38 return "no match: $ret";