projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8399cac
)
add pagespec
author
David Bremner
<bremner@unb.ca>
Tue, 2 Sep 2008 01:18:22 +0000
(22:18 -0300)
committer
David Bremner
<bremner@unb.ca>
Tue, 2 Sep 2008 01:18:22 +0000
(22:18 -0300)
IkiWiki/Plugin/postal.pm
patch
|
blob
|
history
TODO
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/postal.pm
b/IkiWiki/Plugin/postal.pm
index 1c3e92f182907b31a25459be84843d50efd235b6..f9fc955e7dc50339dbbc06a89b1c444b3a176074 100644
(file)
--- a/
IkiWiki/Plugin/postal.pm
+++ b/
IkiWiki/Plugin/postal.pm
@@
-40,7
+40,11
@@
sub pagetemplate (@)
my $key = encode_ytext($page);
- debug("key=".$key);
+ my $pagespec=$config{postal_pagespec} || "!*/comments";
+
+ if (!pagespec_match($page,$pagespec)){
+ return;
+ }
my $subpage_name=$config{postal_pagename} || "comments";
diff --git
a/TODO
b/TODO
index 3062444c455ca58c9f84b9709abe3fc01befb71a..c20ba8f7e854065484394e91503cee015aaf8aa5 100644
(file)
--- a/
TODO
+++ b/
TODO
@@
-1,4
+1,3
@@
* Clean up debugging cruft
-* Add pagespec for which pages get comments
* Test VCS adding for postal-accept