You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by jo...@apache.org on 2011/01/27 22:14:04 UTC

svn commit: r1064308 - /incubator/etch/site/trunk/lib/view.pm

Author: joes
Date: Thu Jan 27 21:14:04 2011
New Revision: 1064308

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

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

Modified: incubator/etch/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/etch/site/trunk/lib/view.pm?rev=1064308&r1=1064307&r2=1064308&view=diff
==============================================================================
--- incubator/etch/site/trunk/lib/view.pm (original)
+++ incubator/etch/site/trunk/lib/view.pm Thu Jan 27 21:14:04 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 our @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 {
@@ -199,4 +199,3 @@ sub breadcrumbs {
            KIND, either express or implied.  See the License for the
            specific language governing permissions and limitations
            under the License.
-