[Catalyst-commits] r9615 - in trunk/Catalyst-View-Mason: lib/Catalyst/View t/lib/TestApp/View/Mason

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Sun Mar 29 20:38:23 BST 2009


Author: rafl
Date: 2009-03-29 20:38:23 +0100 (Sun, 29 Mar 2009)
New Revision: 9615

Modified:
   trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
   trunk/Catalyst-View-Mason/t/lib/TestApp/View/Mason/Pkgconfig.pm
Log:
Switch default for use_match to the new behaviour.

Modified: trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
===================================================================
--- trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm	2009-03-29 19:38:02 UTC (rev 9614)
+++ trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm	2009-03-29 19:38:23 UTC (rev 9615)
@@ -78,7 +78,7 @@
             File::Spec->tmpdir,
             sprintf('%s_%d_mason_data_dir', $app, $<),
         ),
-        use_match                        => 1,
+        use_match                        => 0,
         allow_globals                    => [],
         template_extension               => q//,
         always_append_template_extension => 0,
@@ -273,8 +273,7 @@
 which template to use if C<$c-E<gt>stash-E<gt>{template}> isn't set. This option
 is deprecated and exists for backward compatibility only.
 
-Currently defaults to 1, to avoid breaking older code, but new code should
-always set this to 0.
+Currently defaults to 0. Old code should set this to 1 to avoid breakage.
 
 Example: C<< use_match => 0 >>
 

Modified: trunk/Catalyst-View-Mason/t/lib/TestApp/View/Mason/Pkgconfig.pm
===================================================================
--- trunk/Catalyst-View-Mason/t/lib/TestApp/View/Mason/Pkgconfig.pm	2009-03-29 19:38:02 UTC (rev 9614)
+++ trunk/Catalyst-View-Mason/t/lib/TestApp/View/Mason/Pkgconfig.pm	2009-03-29 19:38:23 UTC (rev 9615)
@@ -6,6 +6,7 @@
 
 __PACKAGE__->config(
         allow_globals => [qw/$foo @bar/],
+        use_match     => 1,
 );
 
 if ($::use_path_class) {




More information about the Catalyst-commits mailing list