Silence warnings about Template::Provider::Encoding (RT #56310)
Brian Cassidy [Thu, 24 Jun 2010 14:09:43 +0000 (14:09 +0000)]
Changes
t/lib/TestApp/View/TT/Encoding.pm

diff --git a/Changes b/Changes
index ef8f2dd..ca34f69 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Revision history for Perl extension Catalyst::View::TT.
         - add template name to exceptions
         - update render_die message to be more concise.
         - Doc fixes (RT#57159)
+        - Silence warnings about Template::Provider::Encoding (RT #56310)
 
 0.34   2010-04-07 04:14:50
         - Fix the process method to have the previous behaviour of reporting
index ffa3589..ffcdbf6 100644 (file)
@@ -15,6 +15,6 @@ __PACKAGE__->config(
             copy_config => [qw(INCLUDE_PATH DEFAULT_ENCODING PRE_CHOMP POST_CHOMP)]
         }
     ],
-);
+) if eval { require Template::Provider::Encoding; };
 
 1;