<div dir="ltr">Hi everybody,<div><br></div><div>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:</div><div><br></div><div><div class="gmail_attr"><pre style="white-space:pre-wrap;font-family:"lucida console",monaco,"andale mono","bitstream vera sans mono",consolas,monospace;font-size:12px;border-width:1px;border-style:solid;border-color:rgb(0,0,0) rgb(238,238,238) rgb(238,238,238) rgb(0,0,0);padding:1em;background:rgb(51,51,68);color:rgb(204,204,221)">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/<a href="http://main.mc/" target="_blank">main.mc</a>", "/users/Base.mc") called at C:/Strawberry/perl/site/lib/Mason/Interp.pm line 308
Mason::Interp::load(Mason::Interp=HASH(0x676528), "/users/layouts/<a href="http://main.mc/" target="_blank">main.mc</a>") called at C:/Strawberry/perl/lib/Memoize.pm line 249
Memoize::_memoizer(CODE(0x5388910), Mason::Interp=HASH(0x676528), "/users/layouts/<a href="http://main.mc/" target="_blank">main.mc</a>") called at (eval 365) line 1</pre></div></div><div>This is my simple template:</div><div><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1503px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:33x" class="gmail-ii gmail-gt gmail-adO" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:33w" class="gmail-a3s gmail-aiL" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr"><div dir="ltr"><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div><%class></div><div>use Dancer qw(session);</div><div></%class></div><br><div><%augment wrap></div><div><span style="color:rgb(128,128,128)"><!</span><span style="color:rgb(86,156,214)">DOCTYPE</span> <span style="color:rgb(156,220,254)">html</span><span style="color:rgb(128,128,128)">></span></div><div><span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">html</span> <span style="color:rgb(156,220,254)">lang</span>=<span style="color:rgb(206,145,120)">"en"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">head</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">meta</span> <span style="color:rgb(156,220,254)">charset</span>=<span style="color:rgb(206,145,120)">"utf-8"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">title</span><span style="color:rgb(128,128,128)">></span>Portal<span style="color:rgb(128,128,128)"></</span><span style="color:rgb(86,156,214)">title</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">META</span> <span style="color:rgb(156,220,254)">HTTP-EQUIV</span>=<span style="color:rgb(206,145,120)">"CACHE-CONTROL"</span> <span style="color:rgb(156,220,254)">CONTENT</span>=<span style="color:rgb(206,145,120)">"NO-CACHE"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">META</span> <span style="color:rgb(156,220,254)">HTTP-EQUIV</span>=<span style="color:rgb(206,145,120)">"PRAGMA"</span> <span style="color:rgb(156,220,254)">CONTENT</span>=<span style="color:rgb(206,145,120)">"NO-CACHE"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">meta</span> <span style="color:rgb(156,220,254)">name</span>=<span style="color:rgb(206,145,120)">"viewport"</span> <span style="color:rgb(156,220,254)">content</span>=<span style="color:rgb(206,145,120)">"width=device-width, initial-scale=1.0"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">meta</span> <span style="color:rgb(156,220,254)">name</span>=<span style="color:rgb(206,145,120)">"description"</span> <span style="color:rgb(156,220,254)">content</span>=<span style="color:rgb(206,145,120)">""</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">meta</span> <span style="color:rgb(156,220,254)">name</span>=<span style="color:rgb(206,145,120)">"author"</span> <span style="color:rgb(156,220,254)">content</span>=<span style="color:rgb(206,145,120)">""</span><span style="color:rgb(128,128,128)">></span></div><br><br><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">body</span><span style="color:rgb(128,128,128)">></span></div><br><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">div</span> <span style="color:rgb(156,220,254)">class</span>=<span style="color:rgb(206,145,120)">"container"</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">div</span> <span style="color:rgb(156,220,254)">class</span>=<span style="color:rgb(206,145,120)">"page-header"</span><span style="color:rgb(128,128,128)">></span></div><div> TESTING</div><div> <span style="color:rgb(128,128,128)"><</span><span style="color:rgb(86,156,214)">br</span><span style="color:rgb(128,128,128)">></span></div><div> <span style="color:rgb(197,134,192)"><%</span> inner() <span style="color:rgb(197,134,192)">%></span></div><br><div> <span style="color:rgb(128,128,128)"></</span><span style="color:rgb(86,156,214)">body</span><span style="color:rgb(128,128,128)">></span></div><div><span style="color:rgb(128,128,128)"></</span><span style="color:rgb(86,156,214)">html</span><span style="color:rgb(128,128,128)">></span></div><div></%augment></div></div></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">What I am missing?<br><div class="gmail_attr"><br></div><div class="gmail_attr">Best Regards</div><font color="#888888"><div class="gmail_attr">Gregor</div></font><div class="gmail-yj6qo gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px"><div id="gmail-:34c" class="gmail-ajR" tabindex="0" style="background-color:rgb(232,234,237);border:none;clear:both;line-height:6px;outline:none;width:24px;border-radius:5.5px"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="background: url("https://www.gstatic.com/images/icons/material/system/1x/more_horiz_black_20dp.png") 50% 50% / 20px no-repeat; height: 11px; opacity: 0.7; width: 24px;"></div></div></div></div></div></div><div class="gmail-hi" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px;padding:0px;width:auto;background:rgb(242,242,242);margin:0px"></div></div></div><br class="gmail-Apple-interchange-newline"></div><div><br></div></div>