Re: [Maypole] CGI::Maypole issues (continued)

From: Gabor Szabo (gabor at perl.org.il)
Date: Tue Sep 21 2004 - 19:46:18 BST


On Tue, 21 Sep 2004, Dave Howorth wrote:

> Gabor Szabo wrote:
> >>What did $r->get_template_root return? Did you try setting
> >>$r->config->{template_root} ?
> > it returns the path to my cgi script:
> > /home/gabor/work/gabor/web/cpants/www/xxx.pl
> > what is the better way to configure Apache for CGI::Maypole ?
>
> __PACKAGE__->config->{template_root} = '/path/to/your/templates/';

Thanks, this is nicer and it works with relative directories as well
making it easier to move the whole application to the live server.

__PACKAGE__->config->{template_root} = '../templates/';

Gabor

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT