[Catalyst] Configuration Approach
Sebastian Riedel
sri at oook.de
Tue Oct 25 15:09:00 CEST 2005
Am 25.10.2005 um 14:24 schrieb Bernard FRIT:
> 2005/10/25, Cédric Bouvier <cbouvi at free.fr>:
>
>> This data format looks very nice, but I cannot find the way to
>> perform
>> any kind of interpolation within the YAML file.
>>
>> I'd love to have something like this:
>>
>> home: /home/cbouvi/dev/MyApp
>> include_templates: $home/templates/lib
>>
>
> So far it seems that YAML will not allow this.
use YAML;
my $foo = Load <<"EOF";
foo1: &1
bar: test
foo2: *1
EOF
print $foo->{foo2}->{bar}, "\n";
--
sebastian
More information about the Catalyst
mailing list