my $page=shift;
my $pagespec=shift;
+ return unless pagespec_valid($pagespec);
+
if (! exists $depends{$page}) {
$depends{$page}=$pagespec;
}
return $ret;
} #}}}
+sub pagespec_valid ($) { #{{{
+ my $spec=shift;
+
+ # used by generated code
+ my $page="";
+ my @params;
+
+ eval pagespec_translate($spec);
+ return ! $@;
+} #}}}
+
package IkiWiki::FailReason;
use overload ( #{{{