[Jifty-commit] r2401 - in Template-Declare: lib/Template

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Dec 18 19:45:49 EST 2006


Author: jesse
Date: Mon Dec 18 19:45:48 2006
New Revision: 2401

Modified:
   Template-Declare/   (props changed)
   Template-Declare/lib/Template/Declare.pm

Log:
 r46255 at 185:  jesse | 2006-12-18 19:45:21 -0500
  * Publish the resolve_template API


Modified: Template-Declare/lib/Template/Declare.pm
==============================================================================
--- Template-Declare/lib/Template/Declare.pm	(original)
+++ Template-Declare/lib/Template/Declare.pm	Mon Dec 18 19:45:48 2006
@@ -66,14 +66,18 @@
     my $pkg           = shift;
     my $template_name = shift;
     my $show_private  = 0 || shift;
-    return  _resolve_template( $pkg, $template_name, $show_private);
+    return  resolve_template( $pkg, $template_name, $show_private);
 }
 
+=head2 resolve_template
 
-sub _resolve_template {
+=cut
+
+
+sub resolve_template {
     my $self          = shift;
     my $template_name = shift;
-    my $show_private  = shift;
+    my $show_private  = shift || 0;
 
     foreach my $package (reverse @{Template::Declare->roots}) {
     


More information about the Jifty-commit mailing list