[dancer-users] In-code template configuration - order matters?

Yanick Champoux yanick at babyl.dyndns.org
Wed Aug 26 01:20:32 BST 2015


On 2015-08-25 06:14 PM, Gabor Szabo wrote:
> 
> Why is that?

I would expect it's because the "set template => 'template_toolkit'"
initialize the template engine, and since you haven't defined your
custom arguments yet, it'll take in the defaults. And when you do pass
your custom arguments on the next line, it's too late and won't be used.

This being said, I haven't checked the code, so that's just a hunch. :-)

Joy,
`/anick


More information about the dancer-users mailing list