Home  |  Login  |  Modify Tutorials  |  Add Tutorials  |  Getting Rated  |  Contact us
Search TutorialsBulletin.com Top Rated Tutorials Most Popular Tutorials Latest Added Tutorials TutorialsBulletin.com

CATEGORIES



SPONSERED



Click "Subscribe" to get notified of new Scripts under this category. 

Perl and CGI Flexible CGI Output with HTML Templates

Home > Perl and CGI > Content Management
Consider our free search engine script. It is an excellent application, but it wouldn't be very helpful for others if it could display its results only in the output page format that we use for our site. Somebody else's site will probably need the output page to contain site-specific navigation links, different colors, or even a completely different layout concept. It is not uncommon to see CGI programs that contain the HTML code that is returned to the browser, inside one or more print statements in the code of the script. Clearly this is not a good idea, since it makes it at least difficult, if not nearly impossible, for a non-programmer to alter the output format. At best, a webmaster with little understanding of perl could identify the HTML code inside the program and alter some obvious items, like colours. Still, as applications grow more complex, this approach becomes even more difficult to manage. If control structures (if, while etc) are being used to generate the output, or if there are multiple pages of output composed by chunks of html that are being generated in different places in the code, even someone who is comfortable with perl could find it hard to figure out how to alter the look of the output. And this is not the only problem. The code itself becomes difficult to manage and maintain. Program code is difficult to read an maintain on its own right. Cluttering it with HTML here and there does not help the situation at all.
Hits: 55  Date: 2006-01-11  Rate: 0.0  Vote: 0  Report Broken Link!  Rate It!

Perl Template Creator

Home > Perl and CGI > Content Management
Use this code to create easily modifiable html templates for use in your perl cgis. Hate having to place all the print statements in your program and having to escape all those quotes? Would you like to give the ability for people who don't know how to program in perl to customize the output of your cgis? Templates are the answer. Here's how it works. Take any html file and anywhere you place in(variable), it gets replaced with $in{'variable'}.
Hits: 39  Date: 2005-09-01  Rate: 0.0  Vote: 0  Report Broken Link!  Rate It!

Pages : 1

MOST POPULAR


TOP RATED


SITEMAP

 

HOME :: LOGIN :: MODIFY TUTORIALS :: ADD TUTORIALS :: GETTING RATED :: CONTACT US

Site Designed and Hosted by PLANET WEBSOFT

Partners :  AddScript   ScriptsFinder   RhymeStore   TemplateThemes   AddScripts   VDC   DentistIndia   eBimaa
Website Scripts   Free Web Hosting   Top5 Web Hosts