[Catalyst] Actions as Moose::Role

Zbigniew Lukasiak zzbbyy at gmail.com
Mon Jun 16 18:16:57 BST 2008


Hi,

I wanted to start preparing for Catamoose and thought about extracting
some Controller code as Moose::Roles - but unfortunately Catalyst
attributes don't compile normally:

Invalid CODE attributes: CaptureArgs(1) : Chained('/') at t/lib/Base.pm line 7

In a simple class:

package Base;
use strict;
use warnings;

#use Moose::Role;

sub basefoo  :CaptureArgs(1) :Chained('/') { }
sub baseendpoint :Args(1) :Chained('basefoo') { }

1;


-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the Catalyst mailing list