projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
the kind of perl code that can only be written at 4:30 am
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
testpagespec.pm
diff --git
a/IkiWiki/Plugin/testpagespec.pm
b/IkiWiki/Plugin/testpagespec.pm
index 56dc03cef98ad67c0e979397189185c1c2c8708c..4966f4e10b1a01d441cb45a4fb75205edaf4fe74 100644
(file)
--- a/
IkiWiki/Plugin/testpagespec.pm
+++ b/
IkiWiki/Plugin/testpagespec.pm
@@
-16,8
+16,12
@@
sub preprocess (@) { #{{{
my $ret=pagespec_match($params{match}, $params{pagespec},
location => $params{page});
- return $ret if ! $ret;
- return "the pagespec matches";
+ if ($ret) {
+ return "match: $ret";
+ }
+ else {
+ return "no match: $ret";
+ }
} # }}}
1