Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
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

Report this thread to moderator Post Follow-up to this message
Old Post
Amy
10-28-04 08:56 AM


Re: serverside perl: process
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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
10-28-04 08:56 AM


Re: serverside perl: process
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Matt Garrish
10-28-04 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:20 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.