Ikiwiki: a dirty way to auto create tag pages.

I needed the feature described here: http://ikiwiki.info/plugins/tag/discussion/

This is a dirty way. You should not use it, I want to replace it with a better one.

--- tag.pm  2007-12-15 23:47:25.000000000 +0100
+++ tag.pm.new  2007-12-27 22:58:16.000000000 +0100
@@ -24,12 +24,28 @@

 sub tagpage ($) { #{{{
    my $tag=shift;
+
+   my $origtag=$tag;

    if (exists $config{tagbase} &&
    defined $config{tagbase}) {
        $tag=$config{tagbase}."/".$tag;
    }

+   my $tagpagetocreate=$config{srcdir}."/".$tag.'.mdwn';
+        if (! -f $tagpagetocreate ) {
+       open(MYF, ">$tagpagetocreate");
+       print MYF <<END;
+[[inline pages="link($config{tagbase}/$origtag)" template="titlepage"]]
+END
+       close(MYF);
+   }
+
    return $tag;
 } #}}}

The main goal is to replace this hack with a clean solution, maybe when I have more time...