catlxom メモ #2

catlxom の Template::TT プラグイン で、$self->classdata->{tt}->process() がエラーになっても、真っ白な画面が表示されるだけで、エラーログにも何も出なくてかなり悩む羽目になったので patch 。

Index: plugins/Template/TT.pm
===================================================================
--- plugins/Template/TT.pm      (revision 23)
+++ plugins/Template/TT.pm      (working copy)
@@ -84,7 +84,7 @@
                 c => $c,
             },
             \$c->res->{body},
-        );
+        ) or $c->error( $self->classdata->{tt}->error );
     }

     $self->NEXT::interpolate($c);