You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pn...@apache.org on 2011/03/19 22:49:39 UTC
[Lucene.Net] svn commit: r1083304 - /incubator/lucene.net/site/trunk/lib/view.pm
Author: pnasser
Date: Sat Mar 19 21:49:38 2011
New Revision: 1083304
URL: http://svn.apache.org/viewvc?rev=1083304&view=rev
Log:
updating view.pm to dynamically get basefile
Modified:
incubator/lucene.net/site/trunk/lib/view.pm
Modified: incubator/lucene.net/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/lucene.net/site/trunk/lib/view.pm?rev=1083304&r1=1083303&r2=1083304&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/lib/view.pm (original)
+++ incubator/lucene.net/site/trunk/lib/view.pm Sat Mar 19 21:49:38 2011
@@ -36,6 +36,7 @@ use Switch;
use Dotiac::DTL;
use Dotiac::DTL::Addon::markup;
use ASF::Util qw( read_text_file );
+use File::Basename;
BEGIN { push @Dotiac::DTL::TEMPLATE_DIRS, "templates"; }
@@ -98,7 +99,7 @@ sub sitemap {
sub _tagline {
- my $file = "roadmap.mdtext"; # pop(split m!/!, shift);
+ my $file = basename($_); #"roadmap.mdtext"; # pop(split m!/!, shift);
switch ($file) {
case "code.mdtext" { return "<h1>Grab the Code</h1><h2>Binaries, Source, Archives, whatever you need...</h2>" }