[Dancer-users] YAML, why?

Alexis Sukrieh sukria at sukria.net
Wed Sep 22 14:15:46 CEST 2010


Le 22/09/2010 13:37, P Kishor a écrit :

> Would be nice if there were any option which would allow me to just
> use pure perl to set my config values, kinda like
>
> %CONFIG = {
> 'charset' =>  'utf-8'
> 'engines' =>  'template_toolkit'
> ..
>
> };

I'm sorry but I disagree on this.

If you want to set all your settings in pure perl, you already can: just 
use the setting keyword in yourapp.pl.

Configuration files, on the other hand, are not meant to be written with 
a programming language. YAML is a very good and well-kown format for 
human-readable configuration files.

Regards,

-- 
Alexis Sukrieh




More information about the Dancer-users mailing list