[dancer-users] session dir

Zahir Lalani ZahirLalani at oliver-marketing.com
Thu Feb 19 15:05:52 GMT 2015


> From: dancer-users [mailto:dancer-users-bounces at dancer.pm] On Behalf Of
> Andrew Beverley
> Sent: 19 February 2015 13:59
> To: Perl Dancer users mailing list
> Subject: Re: [dancer-users] session dir
> 
> On Thu, 2015-02-19 at 13:50 +0000, Zahir Lalani wrote:
> > Ah! Do you mean this:
> >
> > template: "template_toolkit"
> > engines:
> >  template:
> >   template_toolkit:
> >     start_tag:  '<%'
> >     end_tag:    '%>'
> >     encoding:   'utf8'
> >
> > #
> > # session management
> > # YAML stores on disk
> > session: YAML
> > engines:
> >   session:
> >     YAML:
> >       session_dir: /tmp/dancer-sessions
> >
> > so should I be combining the two engines entry as so?
> >
> > template: "template_toolkit"engines:
> > session: YAML
> > engines:
> >  template:
> >   template_toolkit:
> >     start_tag:  '<%'
> >     end_tag:    '%>'
> >     encoding:   'utf8'
> >   session:
> >     YAML:
> >       session_dir: /tmp/dancer-sessions
> 
> Yes, exactly that ;-)
> 
> Although make sure your "session" key is directly below the "template"
> key
> 

Perfect - amazed that its so sensitive to indentation! Very pythony :-)

Thx for the help all

Z


More information about the dancer-users mailing list