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

Fabrice Gabolde fabrice.gabolde at gmail.com
Wed Aug 26 19:11:23 BST 2015


This is it exactly.

@yanick This is what I tried to patch in D1 (and failed). From the
looks of it D2 has the same kind of issue.

On Wed, Aug 26, 2015 at 2:20 AM, Yanick Champoux
<yanick at babyl.dyndns.org> wrote:
> 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
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users


More information about the dancer-users mailing list