XP is just a number | |
PerlMonks |
Re: Meditations On HTML In Perlby dingus (Friar) |
on Dec 04, 2002 at 13:24 UTC ( [id://217469]=note: print w/replies, xml ) | Need Help?? |
I think you are right, there is no good way to always ensure that you never have raw HTML in perl. However use of external stylesheets and external javascript libraries do reduce the amount as do templates.
What I find is that most of my dynamically generated pages consist of is a common header (and sometimes footer) plus a setion where I want to put dynamically generated content. Typically judicious use of Javascript and DHTML means that even navigational bars are in fact common over all pages. As a result the dynamic content is limited to a couple of otherwise empty DIVs which you can then choose how to fill. Thus it is quite possible to have an external html page which conains everything except one or two two blank DIVs like this: Now you need to be strict about what things output stuff to those sections but my scripts typically enforce that by having a print and exit at the bottom which kind of makes it obvious when something started printing halfway up as the page doesn't display right.
Dingus Enter any 47-digit prime number to continue.
In Section
Meditations
|
|