[Catalyst] Need example of Catalyst with Mason View
Jonathan Rockway
jon at jrock.us
Sun Aug 13 01:12:52 CEST 2006
Install Catalyst::Helper::View::Mason from CPAN, and then try this:
$ catalyst.pl MyApp
$ cd MyApp/
$ script/myapp_create view Mason Mason
$ perl Makefile.PL
$ make test
Uh.... actually, it appears that Catalyst::[Helper::]View::Mason is
broken. The view it creates causes this error:
Couldn't instantiate component "MyApp::View::Mason", "The 'comp_root'
parameter ("/home/jon/tmp/MyApp/root") to HTML::Mason::Interp->new() was
a 'hashref object', which is not one of the allowed types: scalar arrayref"
I've never used Mason, so I don't know how to fix this. However,
"/home/jon/tmp/MyApp/root" is a definitely not a "hashref object", so
the error message is pretty misleading.
Also, the documentation is wrong; Mason is ignoring my
__PACAKGE__->config->{comp_root} config->{'MyApp::View::Mason'}
Looks like a bug.
Regards,
Jonathan Rockway
J Cook wrote:
> Hi All,
>
> Could anyone give me an example of a Catalyst setup with a Mason View?
> If you could show me the View/Mason.pm and directory structure that
> would help me mucho.
>
> TIA,
>
> Justin
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060812/792644a6/attachment.pgp
More information about the Catalyst
mailing list