Hi Stefan, Thank you for fast response. In fact I have to do some changes to existing application which is using old Dancer. So, for better understanding I make simple app with Dancer 1.3513 but with this error show in previous mail. Is it somehow possible to figure out what is problem ? Best Regards Gregor On Mon, 24 May 2021 at 17:11, Stefan Hornburg (Racke) <racke@linuxia.de> wrote:
On 5/24/21 9:44 AM, Gregor Stanic wrote:
Hi everybody,
I am new at Dancer, I just made simple hello word application with dancer and mason2 template. When I try to invoke "use Dancer qw(session)" in template i get this error:
Hello Gregor,
thanks for giving Dancer a try. However, please use Dancer2 to write your application. Dancer is only there to support existing installations but active development has stopped.
Regards Racke
Couldn't find declarator 'method' at C:/Strawberry/perl/vendor/lib/Devel/Declare/Context/Simple.pm line 47.
Devel::Declare::Context::Simple::skip_declarator(Method::Signatures::Simple=HASH(0x5dedc00)) called at C:/Strawberry/perl/vendor/lib/Devel/Declare/MethodInstaller/Simple.pm line 62
Devel::Declare::MethodInstaller::Simple::parser(Method::Signatures::Simple=HASH(0x5dedc00), "method", 0, 1) called at C:/Strawberry/perl/vendor/lib/Devel/Declare/MethodInstaller/Simple.pm line 25
Devel::Declare::MethodInstaller::Simple::__ANON__("method", 0)
called at C:/Strawberry/perl/vendor/lib/Devel/Declare.pm line 277
Devel::Declare::linestr_callback("const", "method", 0) called at
C:\test\Test-Purpose\views/users/Base.mc line 3
require C:\test\Test-Purpose\data\obj\users\Base.mc.mobj called at
(eval 470) line 1
eval 'package MC2::users_Base_mc; use Moose; extends
\'Moose::Meta::Class::__ANON__::SERIAL::5\'; do(\'C:\\test\\Test-Purpose\\data\\obj\\users\\Base.mc.mobj\'); die $@ if $@' called at C:/Strawberry/perl/site/lib/Mason/Interp.pm line 441
Mason::Interp::_load_class_from_object_file(Mason::Interp=HASH(0x676528), "MC2::users_Base_mc", "C:\\test\\Test-Purpose\\data\\obj\\users\\Base.mc.mobj", "/users/Base.mc", "/") called at C:/Strawberry/perl/site/lib/Mason/Interp.pm line 308
Mason::Interp::load(Mason::Interp=HASH(0x676528),
"/users/Base.mc") called at C:/Strawberry/perl/lib/Memoize.pm line 249
Memoize::_memoizer(CODE(0x5388910), Mason::Interp=HASH(0x676528),
"/users/Base.mc") called at (eval 365) line 1
Memoize::__ANON__(Mason::Interp=HASH(0x676528), "/users/Base.mc")
called at C:/Strawberry/perl/site/lib/Mason/Interp.pm line 433
Mason::Interp::_load_class_from_object_file(Mason::Interp=HASH(0x676528), "MC2::users_layouts_main_mc", "C:\\test\\Test-Purpose\\data\\obj\\users\\layouts\\main.mc.mobj", "/users/layouts/main.mc <http://main.mc/>", "/users/Base.mc") called at C:/Strawberry/perl/site/lib/Mason/Interp.pm line 308
Mason::Interp::load(Mason::Interp=HASH(0x676528), "/users/layouts/
main.mc <http://main.mc/>") called at C:/Strawberry/perl/lib/Memoize.pm line 249
Memoize::_memoizer(CODE(0x5388910), Mason::Interp=HASH(0x676528),
"/users/layouts/main.mc <http://main.mc/>") called at (eval 365) line 1
This is my simple template: <%class> use Dancer qw(session); </%class>
<%augment wrap> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Portal</title> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content=""> <meta name="author" content="">
<body>
<div class="container"> <div class="page-header"> TESTING <br> <% inner() %>
</body> </html> </%augment>
What I am missing?
Best Regards Gregor
_______________________________________________ dancer-users mailing list dancer-users@lists.preshweb.co.uk https://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. Provisioning with Ansible.
_______________________________________________ dancer-users mailing list dancer-users@lists.preshweb.co.uk https://lists.preshweb.co.uk/mailman/listinfo/dancer-users