[Catalyst] newbie yaml question
Eric W. Bates
ericx at vineyard.net
Wed Jan 16 01:43:52 GMT 2008
Thanks.
Jonathan Rockway wrote:
> On Tue, 2008-01-15 at 18:39 -0500, Eric W. Bates wrote:
>> How do I specify a code ref in YAML?
>>
>> If it's not possible can I use both the YAML and the traditional
>> 'config()' method? (I do question whether using 2 separate methods in 2
>> separate files to perform a single config is really transparent...)
>
> No, you can't put code in a YAML file. Yes, you can use $c->config or
> __PACKAGE__->config to augment the config in the YAML file.
>
> If you don't think that's "transparent" then delete your YAML file and
> forget it. Nobody said you had to use it.
Agreed. but the tutorial and manual pages lean pretty heavily on it. I
assume the consensus knows best. I just don't get it; so I was fishing
for opinion.
> Regards,
> Jonathan Rockway
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list