[Jifty-commit] r6612 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 17 10:59:05 EDT 2009


Author: alexmv
Date: Tue Mar 17 10:59:04 2009
New Revision: 6612

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Handler.pm

Log:
 r43251 at kohr-ah:  chmrr | 2009-03-17 10:34:35 -0400
 Install a faster Jifty::Web->out in the handler


Modified: jifty/trunk/lib/Jifty/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handler.pm	(original)
+++ jifty/trunk/lib/Jifty/Handler.pm	Tue Mar 17 10:59:04 2009
@@ -85,6 +85,11 @@
 
     $self->buffer(String::BufferStack->new( out_method => \&Jifty::View::out_method ));
     $self->setup_view_handlers();
+    {
+        my $buffer = $self->buffer;
+        no warnings 'redefine';
+        *Jifty::Web::out = sub {shift;unshift @_,$buffer;goto \&String::BufferStack::append};
+    }
     return $self;
 }
 


More information about the Jifty-commit mailing list