celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1071129 - /incubator/celix/site/trunk/lib/view.pm
Date Wed, 16 Feb 2011 02:46:36 GMT
Author: joes
Date: Wed Feb 16 02:46:36 2011
New Revision: 1071129

URL: http://svn.apache.org/viewvc?rev=1071129&view=rev
Log:
generate site

Modified:
    incubator/celix/site/trunk/lib/view.pm

Modified: incubator/celix/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/celix/site/trunk/lib/view.pm?rev=1071129&r1=1071128&r2=1071129&view=diff
==============================================================================
--- incubator/celix/site/trunk/lib/view.pm (original)
+++ incubator/celix/site/trunk/lib/view.pm Wed Feb 16 02:46:36 2011
@@ -9,13 +9,13 @@ package view;
 
 use strict;
 use warnings;
-use Dotiac::DTL qw/Template/;
+use Dotiac::DTL qw/Template *TEMPLATE_DIRS/;
 use Dotiac::DTL::Addon::markup;
 use ASF::Util qw/read_text_file shuffle/;
 use File::Temp qw/tempfile/;
 use LWP::Simple;
 
-push @Dotiac::DTL::TEMPLATE_DIRS, "templates";
+push @TEMPLATE_DIRS, "templates";
 
 # This is most widely used view.  It takes a
 # 'template' argument and a 'path' argument.
@@ -52,7 +52,7 @@ sub single_narrative {
 #		print STDOUT "$ke \n";
 #	}
 
-    return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+    return Template($template)->render(\%args), html => \%args;
 }
 
 # Has the same behavior as the above for foo.page/bar.txt
@@ -78,7 +78,7 @@ sub news_page {
         push @{$args{projects}}, parse_doap($_);
     }
 
-    return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+    return Template($template)->render(\%args), html => \%args;
 }
 
 sub sitemap {
@@ -119,7 +119,7 @@ sub sitemap {
         }
     }
     $args{content} = $content;
-    return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+    return Template($template)->render(\%args), html => \%args;
 }
 
 sub exports {
@@ -139,7 +139,7 @@ sub exports {
 
     }
 
-    return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+    return Template($template)->render(\%args), html => \%args;
 }
 
 sub parse_doap {



Mime
View raw message