--- blosxom.v1.2.cgi 2003-02-17 17:21:17.000000000 -0500 +++ blosxom.v1.2.dev.cgi 2003-02-18 10:49:26.000000000 -0500 @@ -59,6 +59,10 @@ use File::stat; use Time::localtime; use CGI qw/:standard :netscape/; +use lib ( '/home/lathi/twiki/lib/' ); +use TWiki; +TWiki::initialize; + my %month2num = (nil=>'00', Jan=>'01', Feb=>'02', Mar=>'03', Apr=>'04', May=>'05', Jun=>'06', Jul=>'07', Aug=>'08', Sep=>'09', Oct=>'10', Nov=>'11', Dec=>'12'); my @num2month = sort { $month2num{$a} <=> $month2num{$b} } keys %month2num; @@ -178,6 +182,7 @@ # Header my $head = join '', ($fh->open("< $datadir/$currentdir/head.$flavour") || $fh->open("< $datadir/head.$flavour") ? <$fh> : ($template{$flavour}{'head'} || $template{'error'}{'head'})); $head =~ s/(\$\w+)/$1 . "||''"/gee; + $head = TWiki::getRenderedVersion ($head, "Main"); $return .= $head; # Stories @@ -235,6 +240,7 @@ } $fh->close; + $body = TWiki::getRenderedVersion ($body, "Main"); my $story = join '', ($fh->open("< $datadir/$path/story.$flavour") || $fh->open("< $datadir/story.$flavour") ? <$fh> : ($template{$flavour}{'story'} || $template{'error'}{'story'})); $story =~ s/(\$\w+)/$1 . "||''"/gee; $return .= $story; @@ -247,6 +253,7 @@ # Footer my $foot = join '', ($fh->open("< $datadir/$currentdir/foot.$flavour") || $fh->open("< $datadir/foot.$flavour") ? <$fh> : ($template{$flavour}{'foot'} || $template{'error'}{'foot'})); $foot =~ s/(\$\w+)/$1 . "||''"/gee; + $foot = TWiki::getRenderedVersion ($foot, "Main"); $return .= $foot; $return;