Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.

In reply to Re: The best way to deliver content by Sherlock
in thread The best way to deliver content by arashi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-28 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found