Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
-0.22 XXX
+0.22 Mon Jan 05 2009
- add a cookbook entry re: UTF-8 and Config::General (Octavian Rasnita)
- switch from NEXT to MRO::Compat
=head1 COPYRIGHT AND LICENSE
-Copyright 2008 by Brian Cassidy
+Copyright 2006-2009 by Brian Cassidy
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
use strict;
use warnings;
-use MRO::Compat;
-
use Catalyst qw/ConfigLoader/;
our $VERSION = '0.01';
sub finalize_config {
my $c = shift;
$c->config( foo => 'bar' );
- $c->next::method();
-}
-
-sub appconfig : Local {
- my ( $self, $c, $var ) = @_;
- $c->res->body( $c->config->{ $var } );
+ $c->next::method( @_ );
}
1;
$c->res->output( $self->{ foo } );
}
+sub appconfig : Global {
+ my ( $self, $c, $var ) = @_;
+ $c->res->body( $c->config->{ $var } );
+}
+
1;