[Dancer-users] Dancer 2 and skeleton dir

David Precious davidp at preshweb.co.uk
Fri Oct 12 17:07:45 CEST 2012


On Fri, 12 Oct 2012 16:28:33 +0200
"Stefan Hornburg (Racke)" <racke at linuxia.de> wrote:

> On 10/11/2012 12:22 PM, sawyer x wrote:
> > On Thu, Oct 11, 2012 at 12:02 PM, Stefan Hornburg (Racke)
> > <racke at linuxia.de>wrote:
> >
> >> On 10/11/2012 11:23 AM, damien krotkine wrote:
> >>
> >>> Yep,
> >>>
> >>> Sawyer : can you try to push it in master as soon as you're
> >>> convinced it's stable and sane enough ?
> >>>
> >>>
> >> I suppose it needs a bit of rewrite as Dancer::Script class
> >> derives from Dancer::Object, which is gone in Dancer 2.
> >>
> >
> > Yes. Indeed.
> >
> 
> Also, any suggestions on rewriting this part of code for Dancer 2 as
> Dancer::ModuleLoader is gone too:
> 
>     unless (Dancer::ModuleLoader->load('YAML')) {
>          print <<NOYAML;
> *****
> WARNING: YAML.pm is not installed.  This is not a full dependency,
> but is highly recommended; in particular, the scaffolded Dancer app
> being created will not be able to read settings from the config file
> without YAML.pm being installed.
[...]

Since Dancer2 uses Config::Any, so they could use any of a variety of
config file formats, I expect that bit can just be removed.


-- 
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github




More information about the Dancer-users mailing list