[Jifty-commit] r7472 - Template-Declare/trunk/lib/Template
Jifty commits
jifty-commit at lists.jifty.org
Thu Sep 3 15:28:50 EDT 2009
Author: theory
Date: Thu Sep 3 15:28:49 2009
New Revision: 7472
Modified:
Template-Declare/trunk/lib/Template/Declare.pm
Log:
Fix POD paragraph under `path_for` so that it's not indented and therefore
won't render as a code block. Also stripped out some trailing whitespace.
Modified: Template-Declare/trunk/lib/Template/Declare.pm
==============================================================================
--- Template-Declare/trunk/lib/Template/Declare.pm (original)
+++ Template-Declare/trunk/lib/Template/Declare.pm Thu Sep 3 15:28:49 2009
@@ -184,7 +184,7 @@
private template 'footer' => sub {
my $self = shift;
my $time = shift || gmtime;
-
+
div { attr { id => "footer"};
"Page last generated at $time."
}
@@ -267,8 +267,8 @@
# Output:
#
- # <h1>Welcome to
- # <em>my</em> site. It's
+ # <h1>Welcome to
+ # <em>my</em> site. It's
# <em>great</em>!</h1>
# <h1>Welcome to <em>my</em> site. It's <em>great</em>!</h1>
# <h2>This is _not_ emphasized.</h2>
@@ -448,8 +448,8 @@
=head2 path_for $template
- Returns the path for the template name to be used for show, adjusted
- with paths used in import_templates.
+Returns the path for the template name to be used for show, adjusted
+with paths used in import_templates.
=cut
@@ -496,7 +496,7 @@
# XXX Should we consider normalizing the path in a more standard way?
$template_name = "/$template_name" unless $template_name =~ m{^/};
-
+
foreach my $alias_key ( @{ Template::Declare->aliases->{$package} } ) {
my $alias_info = $package->alias_metadata()->{$alias_key};
my $alias_prefix = $alias_info->{path};
@@ -555,7 +555,7 @@
}
foreach my $package (@search_packages) {
- next unless ( $package and $package->isa('Template::Declare') );
+ next unless ( $package and $package->isa('Template::Declare') );
if ( my $coderef = $package->_has_template( $template_name, $show_private ) ) {
return $coderef;
} elsif ( $coderef = $package->_has_aliased_template($template_name, $show_private) ) {
@@ -615,9 +615,9 @@
This method registers a private template called C<TEMPLATE_NAME> in package
C<PACKAGE>. As you might guess, C<CODEREF> defines the template's
-implementation.
+implementation.
-Private templates can't be called directly from user code but only from other
+Private templates can't be called directly from user code but only from other
templates.
=cut
More information about the Jifty-commit
mailing list