Perl Dancer和Mason2

Perl Dancer和Mason2,perl,dancer,Perl,Dancer,我正在为Dancer使用Mason2模板。当我试图在模板中调用“舞者qw(会话)”时,我得到了下面显示的错误。我只是编写了一个“hello world”应用程序,其根路径显示index.mc模板。我已经安装了最新的perl 5.26和Dancer版本1.3513 模板: <%class> use Dancer qw(session); </%class> <%augment wrap> <!DOCTYPE html> <html lang=

我正在为Dancer使用Mason2模板。当我试图在模板中调用“舞者qw(会话)”时,我得到了下面显示的错误。我只是编写了一个“hello world”应用程序,其根路径显示index.mc模板。我已经安装了最新的perl 5.26和Dancer版本1.3513

模板:

<%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>

我缺少什么?

Method::Signatures
被最新版本的
Devel::Declare
破坏。如果要使用
Method::Signatures
,请安装
Devel::Declare
version
0.006019
或更低版本


因此,我们最近更新为
Function::Parameters

为什么要在此处导入模块舞者?请用于新代码。另外,请查看文档以了解正确的用法。既然Dancer2已经存在,我真的不建议使用Dancer。我当然不会推荐Mason而不是模板工具包。导入模块舞者的想法是在会话中添加一些其他“数据”。看起来从Dancer和Mason2迁移到Dancer2和模板工具包需要做很多工作。好的,谢谢。我会查的!
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(0x5df6ac8)) called at C:/Strawberry/perl/vendor/lib/Devel/Declare/MethodInstaller/Simple.pm line 62
    Devel::Declare::MethodInstaller::Simple::parser(Method::Signatures::Simple=HASH(0x5df6ac8), "method", 0, 1) called at C:/Strawberry/perl/vendor/lib/Devel/Declare/MethodInstaller/Simple.pm line 25