[Jifty-commit] r2180 - jifty/branches/template-declare/lib/Jifty/Web

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Nov 19 02:02:31 EST 2006


Author: clkao
Date: Sun Nov 19 02:02:30 2006
New Revision: 2180

Modified:
   jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm

Log:
the hack for template-declare-based region should be appending.

Modified: jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm	Sun Nov 19 02:02:30 2006
@@ -274,9 +274,6 @@
     my ($self, $out_method, $arguments, $enable_actions) = @_;
 
     my $orig_out = Jifty->handler->mason->interp->out_method || \&Jifty::View::Mason::Handler::out_method;
-    # template-declare based regions are printing to stdout
-    open my $output_fh, '>', $out_method;
-    local *STDOUT = $output_fh;
 
     Jifty->handler->mason->interp->out_method($out_method);
 
@@ -300,6 +297,10 @@
     #XXX TODO: There's gotta be a better way to localize it
     my $region_content = '';
 
+    # template-declare based regions are printing to stdout
+    open my $output_fh, '>>', $out_method;
+    local *STDOUT = $output_fh;
+
     # Call into the dispatcher
     Jifty->handler->dispatcher->handle_request;
 


More information about the Jifty-commit mailing list