[Catalyst] newbie yaml question
Jonathan Rockway
jon at jrock.us
Wed Jan 16 01:15:02 GMT 2008
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.
Regards,
Jonathan Rockway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080115/b42efa1a/attachment.pgp
More information about the Catalyst
mailing list