Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: The best way to deliver content

by Sherlock (Deacon)
on May 04, 2001 at 01:47 UTC ( [id://77807]=note: print w/replies, xml ) Need Help??


in reply to The best way to deliver content

If you're currently printing the HTML directly from the Perl file, you might want to think about using HTML::Template. There are some pretty good tutorials in these nodes: Using HTML::Template & HTML::Template Tutorial.

HTML::Template offers the ability to split the HTML and your Perl code into separate files. If you're currently serving up multiple pages from a single Perl file, it's probably cluttered with HTML. You could remove each of these pages into template files and then, if someone without the knowledge of Perl comes along but they'd like to edit the HTML, they can do so without having to worry about the Perl.

If you keep the HTML within the Perl file, you'll need someone with knowledge of Perl to make any changes with the page. Since it sounds like you're the only one that knows Perl, that person would be you. Why give yourself the extra work? using HTML::Template will give others the ability to do those changes.

Hopefully, this will help you out.

- Sherlock

Skepticism is the source of knowledge as much as knowledge is the source of skepticism.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://77807]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found