sub preprocess (@) { #{{{
my %params=@_;
+ foreach my $param (qw{match pagespec}) {
+ if (! exists $params{$param}) {
+ error sprintf(gettext("%s parameter is required"), $param);
+ }
+ }
+
add_depends($params{page}, $params{pagespec});
my $ret=pagespec_match($params{match}, $params{pagespec},