Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

For generating HTML, I like a combination of HTML::Template and HTML::FromText, the latter of which I nearly have a nifty patch for. Real soon now, I promise! :-)

In general, I detest writing HTML, and would prefer to have the computer do it for me. If I want a loosely formatted document, HTML::FromText does an excellent job; otherwise, latex2html is preferred. On the other hand, neither tool produces particularly pretty markup, and I don't mind because I'm one of those archaic elitists who prefer content over eye candy. If you want a pretty site, you're probably best off embedding generated HTML in a template. (I have an example at http://www.infernus.net/; a somewhat old version of the code is listed at Automating a Static Website.)

For parsing HTML, use HTML::Parser; for intelligently parsing pseudo-HTML, have a look at Why I like functional programming.

--
The hell with paco, vote for Erudil!
:wq


In reply to Re: How do you deal with HTML in Perl? by FoxtrotUniform
in thread How do you deal with HTML in Perl? by blokhead

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 chanting in the Monastery: (4)
As of 2024-04-25 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found