diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-19 18:49:30 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-19 18:49:30 -0500 |
commit | e611d4cdc10d2fb66d41ec8e101e6e35ddc9fdbf (patch) | |
tree | 660fb2c9daa590f5b7555d1012619de5e6596379 | |
parent | 66dc253437e7ce2e3e8984513b3ecf96603d6670 (diff) |
add tag() pagespec
patch from jon
-rw-r--r-- | IkiWiki/Plugin/tag.pm | 8 |
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 |