Home > Archive > PERL Miscellaneous > October 2004 > serverside perl: process
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
serverside perl: process
|
|
|
| I am maintaining a website where the index file has extension .pl. The
page is divided into templetes, in the header (very first) templete,
there is:
%process organization%, where organization is another templete. There
are several organization templetes followed a unique number.
Please help to know what is the code inbetween %, and how do I know
which templete it is applying.
Many thanks
| |
| Gunnar Hjalmarsson 2004-10-28, 3:56 am |
| Amy wrote:
> I am maintaining a website where the index file has extension .pl.
> The page is divided into templetes, in the header (very first)
> templete, there is:
> %process organization%, where organization is another templete. There
> are several organization templetes followed a unique number.
>
> Please help to know what is the code inbetween %, and how do I know
> which templete it is applying.
If I understand it correctly, %process organization% is a template
variable. I suppose you'd better include a Perl program in index.pl that
reads all the template files that are needed to compose the page,
replaces the template variables in the first template with the content
of respective sub-template, and prints the resulting content to STDOUT.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Matt Garrish 2004-10-28, 3:56 am |
|
"Amy" <cs221239@yahoo.ca> wrote in message
news:53a1c7f5.0410271849.222b6d85@posting.google.com...
>I am maintaining a website where the index file has extension .pl. The
> page is divided into templetes, in the header (very first) templete,
> there is:
> %process organization%, where organization is another templete. There
> are several organization templetes followed a unique number.
>
> Please help to know what is the code inbetween %, and how do I know
> which templete it is applying.
>
I believe you mean template, not "templete". At any rate, from your
description it sounds like the author of the script has either implemented
their own templating system or is using one of the modules available for
this task (impossible to say for sure which without seeing what modules are
being used).
The "%text%" markers that you see in the template indicate where variables
(normally containing html code) will be interpolated when the page is
created by the script. What those variables are and how they're created is
obviously unanswerable without seeing the code. Please do not post the
entire script here in the hopes that someone will explain it all to you,
though. I would suggest instead that you contact the author of the script.
Matt
|
|
|
|
|