From e611d4cdc10d2fb66d41ec8e101e6e35ddc9fdbf Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 19 Feb 2009 18:49:30 -0500 Subject: add tag() pagespec patch from jon --- IkiWiki/Plugin/tag.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'IkiWiki/Plugin') 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 -- cgit v1.2.3