[dancer-users] template parameters are not working

Andrew Beverley andy at andybev.com
Mon Jan 18 23:17:46 GMT 2016


On Tue, 2016-01-19 at 00:55 +0200, Kadir Beyazlı wrote:
> But when I change their place (session definition first), it works:
> 
> session: YAML
> engines:
>   session:
>     YAML:
>       session_dir: /home/kadir/dancer-sessions
> 
> template: "template_toolkit"
> engines:
>   template:
>     template_toolkit:
>       start_tag: '<%'
>       end_tag:   '%>'

You've got the engines key twice. You need to combine them:

engines:
  session:
    YAML:
      session_dir: /home/kadir/dancer-sessions
  template:
    template_toolkit:
      start_tag: '<%'
      end_tag:   '%>'



More information about the dancer-users mailing list