add tag() pagespec
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 19 Feb 2009 23:49:30 +0000 (18:49 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 19 Feb 2009 23:49:30 +0000 (18:49 -0500)
patch from jon

IkiWiki/Plugin/tag.pm

index d439109104a8fd10dfd8ea329d083b4241c42fd0..48c197748fed95b307d14742463522bd1057f59f 100644 (file)
@@ -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