kitsune has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to use Perl to design the foundation of my website. It has multiple pages. Each page looks the same, except for the content section. Thus, I have a template page and what I do currently is use PHP's include() function to include the header and footer onto each page.
What I want to do now is use mod_rewrite to redirect mydomain.com/path/to/file to mydomain.com/index.pl?page=path/to/file and then process that variable "page" using CGI and HTML::Template (and other modules if necessary). Is there a way to set my .tmpl file to include a file based on what the variable "page" holds? Should these included files by html files or pl files? Also, some of the content files might require Perl in them. How would I get this done?
Thank you!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to design website structure?
by CountZero (Bishop) on Feb 13, 2010 at 12:28 UTC | |
Re: How to design website structure?
by Your Mother (Archbishop) on Feb 13, 2010 at 17:30 UTC | |
by dsheroh (Monsignor) on Feb 14, 2010 at 09:51 UTC | |
Re: How to design website structure?
by pajout (Curate) on Feb 13, 2010 at 13:01 UTC |