summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-19 18:49:30 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-19 18:49:30 -0500
commite611d4cdc10d2fb66d41ec8e101e6e35ddc9fdbf (patch)
tree660fb2c9daa590f5b7555d1012619de5e6596379 /IkiWiki/Plugin
parent66dc253437e7ce2e3e8984513b3ecf96603d6670 (diff)
add tag() pagespec
patch from jon
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/tag.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index d43910910..48c197748 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -125,4 +125,12 @@ sub pagetemplate (@) {
}
}
+package IkiWiki::PageSpec;
+
+sub match_tag ($$;@) {
+ my $page = shift;
+ my $glob = shift;
+ return match_link($page, IkiWiki::Plugin::tag::tagpage($glob));
+}
+
1