繁体   English   中英

Perl 舞者和梅森2

[英]Perl Dancer and Mason2

我正在为 Dancer 使用 Mason2 模板。 当我尝试在模板中调用“Dancer qw(session)”时,出现如下错误。 我只是用显示 index.mc 模板的根路由编写“hello world”应用程序。 我已经安装了最新的 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>

错误:

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

    

我错过了什么?

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM