[Jifty-commit] r2179 - jifty/branches/template-declare/lib/Jifty/Web
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Nov 19 00:51:15 EST 2006
Author: clkao
Date: Sun Nov 19 00:51:15 2006
New Revision: 2179
Modified:
jifty/branches/template-declare/lib/Jifty/Web/PageRegion.pm
Log:
Make template-declared-based pageregion work in mason templates.
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 00:51:15 2006
@@ -274,6 +274,9 @@
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);
More information about the Jifty-commit
mailing list