ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在catalyst中类方法后面有个属性

在catalyst中类方法后面有个属性

原创 Linux操作系统 作者:bulletming 时间:2019-06-29 20:45:06 0 删除 编辑

http://search.cpan.org/~jrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod#DATABASE_ACCESS_WITH_DBIx::Class

在看到catalyst manual tutorial的时候,作者还是给出了解释

Note: Catalyst actions are regular Perl methods, but they make use of Nicholas Clark's attributes module (that's the : Local next to the sub list in the code above) to provide additional information to the Catalyst dispatcher logic.

对于catalyst中方法的attr在manual intro文档里边有详细描述

下边地址有更基本的描述:
http://search.cpan.org/~nwclark/perl-5.8.8/pod/perlsub.pod#Subroutine_Attributes___

也没时间很详细的研究,先记录一下

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/82392/viewspace-170408/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2004-05-31

  • 博文量
    121
  • 访问量
    106597