Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageAmy 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
Post Follow-up to this message"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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.