Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Simple HTML Generation: Please Advise

by jarich (Curate)
on Nov 27, 2002 at 03:16 UTC ( [id://215997]=note: print w/replies, xml ) Need Help??


in reply to Simple HTML Generation: Please Advise

First of all I approve whole heartedly about your choice of using CGI::Simple. As everyone would know the document for CGI.pm includes the paragraph:
This module has grown large and monolithic. Furthermore it's doing many things, such as handling URLs, parsing CGI input, writing HTML, etc., that are also done in the LWP modules. It should be discarded in favor of the CGI::* modules, but somehow I continue to work on it.
But, as you said, you'll need something else to handle HTML creation. I agree with dws that you should definately consider HTML::Template because you want to use templates of some description or another.

Unfortunately no templating system can completely remove the requirement to create a certain amount of HTML yourself. You can either use heredocs or something else... if you're using CGI::Simple, I'd suggest looking at XML::Generator or, if you really want something more like what CGI lets you do HTML::AsSubs. XML::Generator refers to HTML::Generator which sounds ideal but doesn't seem to exist. :(

Of course for a simple suggestion as you've asked HTML::Seamstress might also be interesting.

Hope these help.

jarich

  • Comment on Re: Simple HTML Generation: Please Advise

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found