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