From: Joey Hess Date: Thu, 19 Feb 2009 23:49:30 +0000 (-0500) Subject: add tag() pagespec X-Git-Tag: 3.05~26 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=e611d4cdc10d2fb66d41ec8e101e6e35ddc9fdbf add tag() pagespec patch from jon --- 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