[dancer-users] session dir

Andrew Beverley andy at andybev.com
Thu Feb 19 13:59:02 GMT 2015


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




More information about the dancer-users mailing list