[Dancer-users] Crash after upgrade to 1.3001

Eric Guirbal eric.guirbal at gmail.com
Mon Jan 31 09:22:01 CET 2011


Thomas Maier a écrit :
> get '/' => sub { template 'index.tt' };
> 
> Request on http://localhost:3000/ gives now the follow error:
> [1914]  core @0.004733> [hit #1]request to / crashed:
> '/path/to/dancer/myapp/views/' is not a regular file at
> /usr/local/share/perl/5.10.1/Dancer/Helpers.pm line 39 in
> /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 76
> 
> Any idea why ?

Delete the extension .tt. Dancer automagically add the extension based 
on the template you use.

https://github.com/sukria/Dancer/blob/master/lib/Dancer/Template/Abstract.pm 
(line 129)

Regards.

-- 
Eric



More information about the Dancer-users mailing list