You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Hemond, Steve" <SH...@SMURFIT.com> on 2004/01/16 21:31:55 UTC

Includes in mod_perl

Hi ppl,

I've started programming with Perl some months ago and I want to switch
to mod_perl for my website (my older website is an asp website).

I readed the tutorials on perl.apache.org but I am still very confused
and don't know how to start my new website with mod_perl.

Actually :
1. I have only one website running on my Apache webserver (in /htdocs/)
2. I would like to use a templating system so I could write plain html
code and include dynamic content between special tags.
3. I would like my webpages to have the same header and footer.

What do you suggest me to do :

1. How to modify httpd.conf so mod_perl would be the handler for my only
website (my main problem, actually)
2. Can I have all my webpages have the .pl extension and reside in the
same directory (/htdocs/) so I could get rid of a /cgi-bin/
subdirectory?

Your ideas and basic explanations of mod_perl will be very appreciated.

Thanks in advance,

Best regards,

Steve Hemond
Programmeur Analyste / Analyst Programmer
Smurfit-Stone, Ressources Forestieres
La Tuque, P.Q.
Tel.: (819) 676-8100 X2833
shemond@smurfit.com 


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Includes in mod_perl

Posted by petersm <pe...@venzia.com>.
Hemond, Steve <SH...@SMURFIT.com> wrote

> Actually :
> 1. I have only one website running on my Apache webserver (in /htdocs/)

Maybe if you show us the relevant portions of your httpd.conf file we could
point you in the right direction since this is were most of that is set up.

> 2. I would like to use a templating system so I could write plain html
> code and include dynamic content between special tags.
> 3. I would like my webpages to have the same header and footer.

I really enjoy HTML::Template. I use it for both mod_perl and plain old cgi
scripts and it works wonderfully. I especially like it since even the custom
tags that it uses to fill in dynamic content look and behave like HTML.

Michael Peters
Venzia


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html