[dancer-users] First issue
Gregor Stanic
gregor.stanic at gmail.com
Mon May 24 08:44:03 EDT 2021
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:
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", "/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") called at C:/Strawberry/perl/lib/Memoize.pm
line 249
Memoize::_memoizer(CODE(0x5388910), Mason::Interp=HASH(0x676528),
"/users/layouts/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20210524/c6222eb5/attachment.htm>
More information about the dancer-users
mailing list