Config::General format
- fix up pod to explain in more detail how to pass options to each
driver class (Sergio Salvi)
+ - add nice syntax for plugins to match models/views/controllers (ilmari)
0.20 Fri May 02 2008
- sort configs by filename for loading (RT #31498)
values => delete $config->{ lc $_ } || delete $config->{ $_ }
},
grep { ref $config->{ lc $_ } || ref $config->{ $_ } }
- qw( Component Model M View V Controller C )
+ qw( Component Model M View V Controller C Plugin )
);
foreach my $comp ( @components ) {
package MockApp;
-use Test::More tests => 9;
+use Test::More tests => 10;
use Cwd;
$ENV{ CATALYST_HOME } = cwd . '/t/mockapp';
is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' );
is( __PACKAGE__->config->{ 'foo_sub' }, 'x-y' );
is( __PACKAGE__->config->{ 'literal_macro' }, '__DATA__' );
+is( __PACKAGE__->config->{ 'Plugin::Zot' }->{ zoot }, 'zooot');
'Model::Baz' => { qux => 'xyzzy' },
foo_sub => '__foo(x,y)__',
literal_macro => '__literal(__DATA__)__',
+ Plugin => { Zot => { zoot => 'zooot' } },
}