Hi,

On the project I'm working on I've been using a recursive template call, so
after some digging, on Dancer1 i was able to set this up on config.yml with
something like:

engines:
  template_toolkit:
   ...
    WRAPPER: 'wrapper.tt'
    RECURSION: '1'
   ...

Which passed the recursion flag to Template object and allowed recursion
(set to zero by default).

I'm now trying to move the project to Dancer2 but i end up with the
following error:

error @2013-11-01 18:43:58> Route exception: file error - recursion into
'UNWRAP.tt'

It seems that Dancer is not telling Template::Toolkit that it should allow
recursion on templates. From what I remember when I was setting up Template
Toolkit recursion flag in previous version of Dancer, anything under
"template_toolkit" would be sent as a parameter to Template->new(), has
this changed?

thanks,

-- 
Tiago Quintela
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to