[Jifty-commit] r3270 - in Template-Declare: lib/Template/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun May 20 16:22:24 EDT 2007
Author: jesse
Date: Sun May 20 16:22:24 2007
New Revision: 3270
Modified:
Template-Declare/ (props changed)
Template-Declare/lib/Template/Declare/Tags.pm
Log:
r56992 at 232: jesse | 2007-05-20 16:21:55 -0400
* minor refactoring
Modified: Template-Declare/lib/Template/Declare/Tags.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Tags.pm (original)
+++ Template-Declare/lib/Template/Declare/Tags.pm Sun May 20 16:22:24 2007
@@ -424,25 +424,21 @@
=cut
sub show {
- my $template = shift;
- my $INSIDE_TEMPLATE = 0;
+ my $template = shift;
+ my $data;
# if we're inside a template, we should show private templates
if ( caller->isa('Template::Declare') ) {
- $INSIDE_TEMPLATE = 1;
+ _show_template( $template, 1 );
+ return Template::Declare->buffer->data;
} else {
- Template::Declare->new_buffer_frame;
+ return show_page( $template);
}
- _show_template( $template, $INSIDE_TEMPLATE );
- my $data = Template::Declare->buffer->data;
- unless ($INSIDE_TEMPLATE) {
- Template::Declare->end_buffer_frame;
- %ELEMENT_ID_CACHE = ();
- }
- return $data;
}
+
+
sub show_page {
my $template = shift;
my $INSIDE_TEMPLATE = 0;
More information about the Jifty-commit
mailing list