[Dancer-users] POLL - Hierachical config settings - preferred implementation?

David Precious davidp at preshweb.co.uk
Sat Apr 30 21:15:22 CEST 2011

Evening all,

Pull request 459[1] by ambs introduces support for hierachical setting via the 
'set' keyword, for instance, to have the same effect as the following in 

          extension: tt

... you'd be able to use:

  set 'engines/simple/extension' => 'tt';

There's been some discussion on whether this is the best way to do it, and the 
other suggestion is to use a hashref in Moose-ish fashion, e.g.:

  set engines => { +simple => { +extension => 'tt' } };

So, the question is, which do you prefer?


Dave P

[1] https://github.com/sukria/Dancer/pull/459

David Precious  ("bigpresh")

   "Programming is like sex. One mistake and you have to support
   it for the rest of your life". (Michael Sinz)

More information about the Dancer-users mailing list