[Catalyst-commits] r10862 - in Catalyst-View-TT/trunk: . lib/Catalyst/View

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Sat Jul 11 23:59:32 GMT 2009


Author: t0m
Date: 2009-07-11 23:59:32 +0000 (Sat, 11 Jul 2009)
New Revision: 10862

Modified:
   Catalyst-View-TT/trunk/Changes
   Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
Log:
Apply patch with a gotcha from the mailing list

Modified: Catalyst-View-TT/trunk/Changes
===================================================================
--- Catalyst-View-TT/trunk/Changes	2009-07-11 22:07:47 UTC (rev 10861)
+++ Catalyst-View-TT/trunk/Changes	2009-07-11 23:59:32 UTC (rev 10862)
@@ -5,6 +5,8 @@
           + Expand ::V:: to ::View:: (RT #45792)
           + Expand ::C:: to ::Controller:: and use $c->view('TT')
             where appropriate (bricas)
+          + Add note about use CGI in a template making Catalyst hang
+            (Gunnar Strand)
         - "use warnings" in Catalyst::View::TT and output from the TT helper
         - Expand TTSite documentation (RT #33838)
 

Modified: Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
===================================================================
--- Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm	2009-07-11 22:07:47 UTC (rev 10861)
+++ Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm	2009-07-11 23:59:32 UTC (rev 10862)
@@ -625,6 +625,17 @@
 started.  It also configures the view module to locate the templates
 automatically.
 
+=head1 NOTES
+
+If you are using the L<CGI> module inside your templates, you will
+experience that the Catalyst server appears to hang while rendering
+the web page. This is due to the debug mode of L<CGI> (which is
+waiting for input in the terminal window). Turning off the
+debug mode using the "-no_debug" option solves the
+problem, eg.:
+
+    [% USE CGI('-no_debug') %]
+
 =head1 SEE ALSO
 
 L<Catalyst>, L<Catalyst::Helper::View::TT>,




More information about the Catalyst-commits mailing list