30 Jan
2011
30 Jan
'11
7:02 a.m.
Hi all, I have this simply setup that worked well under 1.2003 config.yml: template: template_toolkit layout: main views/header.tt: <DOCTYPE .... ... <body> views/index.tt <h1>test</h1> views/footer.tt </body> </html> views/layouts/main.tt [% INCLUDE header.tt %] [% content %] [% INCLUDE footer.tt %] lib/myapp.pm ... 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 ? Thanks Thomas