31 Jan
2011
31 Jan
'11
8:22 a.m.
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