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?
--Chris
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:
<table ...> <tr> <td><p>This is some text</p></td> </tr> </table>
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?
--Chris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Managing large CGI pages
by KM (Priest) on Jun 07, 2000 at 21:07 UTC | |
Re: Managing large CGI pages
by swiftone (Curate) on Jun 07, 2000 at 21:30 UTC | |
Re: Managing large CGI pages
by cwest (Friar) on Jun 07, 2000 at 21:32 UTC | |
Re: Managing large CGI pages
by t0mas (Priest) on Jun 07, 2000 at 22:04 UTC | |
Re: Managing large CGI pages
by a (Friar) on Jun 08, 2000 at 06:50 UTC | |
RE: Managing large CGI pages
by JanneVee (Friar) on Jun 07, 2000 at 23:18 UTC | |
RE: Managing large CGI pages
by flyfishin (Monk) on Jun 08, 2000 at 00:08 UTC | |
Re: Managing large CGI pages
by plaid (Chaplain) on Jun 08, 2000 at 00:57 UTC | |
by JanneVee (Friar) on Jun 08, 2000 at 02:27 UTC |
Back to
Seekers of Perl Wisdom