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 2012/02/15 05:51:14 UTC
[Lucene.Net] svn commit: r1244354 - /incubator/lucene.net/site/trunk/lib/view.pm
Author: pnasser
Date: Wed Feb 15 04:51:14 2012
New Revision: 1244354
URL: http://svn.apache.org/viewvc?rev=1244354&view=rev
Log:
CMS commit to lucene.net by pnasser
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=1244354&r1=1244353&r2=1244354&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/lib/view.pm (original)
+++ incubator/lucene.net/site/trunk/lib/view.pm Wed Feb 15 04:51:14 2012
@@ -58,10 +58,14 @@ sub basic {
sub news_page {
my %args = @_;
- my $template = "content$args{path}";
+ my $file = "content$args{path}";
+ my $template = $args{template};
+ $args{path} =~ s/\.mdtext$/\.html/;
$args{breadcrumbs} = breadcrumbs($args{path});
- my $page_path = $template;
+ read_text_file $file, \%args;
+
+ my $page_path = $file;
$page_path =~ s/\.[^.]+$/.page/;
if (-d $page_path) {
for my $f (grep -f, glob "$page_path/*.mdtext") {
@@ -72,6 +76,7 @@ sub news_page {
}
return Dotiac::DTL->new($template)->render(\%args), html => \%args;
+
}