new replacement: __path_to('foo/bar')__ => $c->path_to( 'foo', 'bar' )
sub finalize_config {\r
my $c = shift;\r
my $v = Data::Visitor::Callback->new(\r
- plain_value => sub { s[^__HOME__/(.+)$][ $c->path_to($1) ]e if defined $_ }\r
+ plain_value => sub {\r
+ return unless defined $_;\r
+ s[__HOME__][ $c->path_to( '' ) ]e;\r
+ s[__path_to\((.+)\)__][ $c->path_to( split( '/', $1 ) ) ]e;\r
+ }\r
);\r
$v->visit( $c->config );\r
}\r