31 Jan
2011
31 Jan
'11
8:35 a.m.
On 1/31/2011 10:22 AM, Eric Guirbal wrote:
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)
But 'tt' extension works fine with Dancer 1.2003? Is it really the reason of this crash? Thomas