[Dancer-users] Crash after upgrade to 1.3001

Thomas Maier hayzer at gmail.com
Sun Jan 30 08:02:54 CET 2011


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


More information about the Dancer-users mailing list