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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jan 15 20:59:31 EST 2007


Author: jesse
Date: Mon Jan 15 20:59:31 2007
New Revision: 2502

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

Log:
 r20995 at hualien:  jesse | 2007-01-15 20:57:42 -0500
 * doc


Modified: Template-Declare/lib/Template/Declare.pm
==============================================================================
--- Template-Declare/lib/Template/Declare.pm	(original)
+++ Template-Declare/lib/Template/Declare.pm	Mon Jan 15 20:59:31 2007
@@ -157,7 +157,15 @@
     return undef;
 }
 
-=head2 resolve_template
+=head2 resolve_template TEMPLATE_PATH INCLUDE_PRIVATE_TEMPLATES
+
+Turns a template path (C<TEMPLATE_PATH) into a C<CODEREF>.  If the boolean
+C<INCLUDE_PRIVATE_TEMPLATES> is true, resolves private template in
+addition to public ones.
+
+First it looks through all the valid Template::Declare roots. For each root, it looks to see
+if the root has a template called $template_name directly (or via an C<import> statement). Then it looks 
+to see if there are any C<alias>ed paths for the root with prefixes that match the template we're looking for.
 
 =cut
 


More information about the Jifty-commit mailing list