Subject: | Fwd: Could not find an attribute by the name of 'suffix' to inherit from |
Date: | Mon, 13 Jun 2011 11:19:44 -0500 |
To: | bugs-catalyst-view-xslate [...] rt.cpan.org |
From: | Caleb Cushing <xenoterracide [...] gmail.com> |
The following is created by this, per the documentation:
script/create.pl view test Xslate cache=0 suffix=.tt bridge=TT2
syntax=TTerse
use Moose;
extends 'Catalyst::View::Xslate';
has '+suffix' => ( default => '.tt' );
has '+syntax' => ( default => 'TTerse' );
has '+cache' => ( default => '0' );
has '+module' => (
default => sub { [ 'Text::Xslate::Bridge::TT2' ] }
);
it generates this error:
Couldn't load class (MyApp) because: Could not find an attribute by
the name of 'suffix' to inherit from in MyApp::View::test at
/home/ccushing/perl5/lib/perl5/i686-linux-thread-multi/Moose/Meta/Class.pm
line 626
--
Caleb Cushing
http://xenoterracide.com