3 Jul
2011
3 Jul
'11
11 a.m.
On Sun, 2011-07-03 at 11:50 +0100, David Precious wrote:
Can't call method "params" on an undefined value at /usr/local/share/perl/5.10.1/Dancer/Template/Abstract.pm line 112.
Is it a bug? Or what I'm doing wrong?
Looks like template() expects to be called within a route handler where there's a request being processed, but you're using it outside of routes in a simple script.
I've raised this as Issue 592 to track it: https://github.com/sukria/Dancer/issues/592 -- David Precious ("bigpresh") http://www.preshweb.co.uk/ "Programming is like sex. One mistake and you have to support it for the rest of your life". (Michael Sinz)