[Catalyst] YAML vs. *

Matt S Trout dbix-class at trout.me.uk
Fri Jun 9 18:33:21 CEST 2006


Thomas Nagel wrote:
> Matt S Trout schrieb:
>> I love YAML as a serialisation format for data transfer, but so far as stuff 
>> like config files that are designed for human write / machine read, I 
>> personally think it sucks. Massively.
> 
> I agree but what about something like:
> 
> 'View::TToolkit' =>
>   { INCLUDE_PATH => [__PACKAGE__->path_to('tt2/content'),
>                      __PACKAGE__->path_to('tt2/lib')    ],
>     WRAPPER      => [qw/html layout/],
>     PRE_PROCESS  => [qw/config macros design/],
>     ...
> 
> Although INI style is my preferred format, the above is definitely not
> easy to formulate that way or am I missing something?

This is where my fondness of Config::General comes from

<View TToolkit>
   INCLUDE_PATH __path_to(tt2/content)__
   INCLUDE_PATH __path_to(tt2/lib)__

   WRAPPER html
   WRAPPER layout

   PRE_PROCESS config
   PRE_PROCESS macros
   PRE_PROCESS design
</View>

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list