[Dancer-users] [Dancer 2]

damien krotkine dkrotkine at gmail.com
Tue Mar 20 21:43:53 CET 2012


Hi,

Test script is in the topic/hook_issues branch :
https://github.com/PerlDancer/Dancer2/commit/4bd5f1d9a54792da2801257d41599767131a71ca

See line 31. If you uncomment this line, things suddenly work. We should
have to do that.


On 16 March 2012 17:35, damien krotkine <dkrotkine at gmail.com> wrote:

> Yes I'll work on a test script.
>
>
> On 16 March 2012 17:33, Alexis Sukrieh <sukria at sukria.net> wrote:
>
>> Thanks Damien for the precisions.
>>
>> Le 16 mars 2012 00:08, damien krotkine <dkrotkine at gmail.com> a écrit :
>> > So,
>> >
>> > Looking at the code, Dancer2 go ask every engine which hooks can be
>> created.
>> > However, it requires the engines to be created.
>> >
>> > So you can't install a before_template hook before having setup the
>> engine
>> > template. So you need to have setting template => 'template_toolkit';
>> for
>> > instance, before being able to create a template hook.
>> >
>> > It's problematic with Plugins, that may want to create hooks *before*
>> the
>> > app has set a template engine for instance.
>>
>> I see. Do you think it would be possible to isolate that in a test
>> script for Dancer 2 ?
>>
>> That will be easier for me to dig in the code to find a solution.
>>
>> Thanks.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120320/baaafb5c/attachment.htm>


More information about the Dancer-users mailing list