[Catalyst] Mason-Document-Root
Florian Rossol
rossol at yola.in-berlin.de
Wed Oct 26 15:36:38 CEST 2005
Hi list,
up to now I used a HTML::Mason driven Website with the document-root
set to /var/www. All the components uses the autohandler
"/var/www/autohandler" to include header, navbar, ....
Now I created a little Catalyst-application (thanks for Catalst!). I
put the files for the project to /var/www/catapp. As engine I use
apache 1.3 with mod_perl with the following setup:
---(snipp)---
<Perl>
use lib qw(/var/www/catapp/lib);
</Perl>
PerlModule Catapp
<Location /catapp>
SetHandler perl-script
PerlHandler Catapp
</Location>
---(snapp)---
As base class for my view in Catalyst I use Catalyst::View::Mason:
---(snipp /var/www/catapp/lib/Catapp/V/Mason.pm)---
package Pstricks::V::Mason;
use strict;
use base 'Catalyst::View::Mason';
__PACKAGE__->config->{comp_root} = '/var/www/catapp/root';
__PACKAGE__->config->{data_dir} = '/var/lib/mason';
---(snapp)---
Is it possible to configure Catalyst resp. Catalyst::View::Mason in
such a way, that the Mason-Templates (which are in
/var/www/catapp/root) use the global autohandler
(/var/www/autohandler)?
Thanks
Florian
--
gpg-key: http://yola.in-berlin.de/rossol.gpg
More information about the Catalyst
mailing list