List Info

Thread: RE: PATCH for Catalyst::Plugin::ConfigLoader




RE: PATCH for Catalyst::Plugin::ConfigLoader
country flaguser name
United Kingdom
2007-08-22 14:25:05
> Jason Kohles wrote:
> > On Aug 21, 2007, at 9:05 PM, Jonathan Rockway
wrote:
> > 
> >> Sorry to hijack this thread... but it reminded
me... 
> something I've been
> >> wanting for a while is:
> >>
> >>   $c->config-> = {
> >>       foo => sub { bar($_[0]) . baz($_[1])
}
> >>       ...
> >>   }
> > 
> > sub config_substitutions {
> >     my $c = shift;
> >     for ( _ ) {
> >         s{ $c->path_to( '' ) }e;
> >         s{__path_to((.+))__}{ $c->path_to(
split( '/', $1 ) ) }e;
> >     }
> > }
> 
> I've committed a patch that combines the above two
options [1].
> 
> -Brian

Fantastic. And yet ... ;o)


_______________________________________________
Catalyst-dev mailing list
Catalyst-devlists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst-dev


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )