|We don't bite newbies here... much|
Managing large CGI pagesby jcwren (Prior)
|on Jun 07, 2000 at 20:57 UTC||Need Help??|
jcwren has asked for the wisdom of the Perl Monks concerning the following question:
I'm curious as to what other people do when it comes to generating complex pages of HTML from a perl script.
My typical method is that I design the web pages in HotMetal, and use a super-classed version of the HTML::Parser module that does variable substitution (and more) for all the dynamic stuff.
I look at a page like the main page of the Monastery, or SlashDot, and wonder how it's managed. I'm familiar with the CGI module, but formatting the perl source so that it's readable has always been a problem. I prefer my HTML indented, to the effect of:
I have yet to find a way of formatting that in perl that allows me to understand at a glance how the page is going to look. I also know that I can use some of the "fancy" (read: highly compressed) formatting as shown in the CGI.pm docs, but I don't consider that maintainable (from the standpoint of not using the CGI module everyday, and coming back to it in a few months).
I'm proficient enough in HTML, but I don't want to "think" about writing in HTML. I'd rather "think" about my writing in Perl. This is why I use pages that I can design (and others can edit) in an HTML editor.
So, monks, friars, saints, and the lot of you, what's your opinion? How do you manage your massive amounts of HTML?