]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/tag.pm
move dedup code into function, simplify
[git.ikiwiki.info.git] / IkiWiki / Plugin / tag.pm
index d439109104a8fd10dfd8ea329d083b4241c42fd0..8fe9c68286cc4ff49f15372c752cd981681a3181 100644 (file)
@@ -125,4 +125,12 @@ sub pagetemplate (@) {
        }
 }
 
+package IkiWiki::PageSpec;
+
+sub match_tagged ($$;@) {
+       my $page = shift;
+       my $glob = shift;
+       return match_link($page, IkiWiki::Plugin::tag::tagpage($glob));
+}
+
 1