On Dec 15, 2003, at 7:57 AM, Kevin Old wrote: [..]
[..]I've been "hand coding" HTML for some time now, but recently a lazy streak has run through me and I'd like to find a way to "autogenerate" creation of a lot of my HTML. Thing is, I'd also like it to be HTML 4.01 compliant.
I'd rather not go the CGI.pm route as I am generating static pieces of HTML for use in HTML::Mason pages. A table here, a link there, and so forth, in the end it seems that I can never catch all the errors for HTML 4.01 compliance.
Kevin,
it shoulds like you have mutually conflicting goals here. On the one hand you want to 'automate' a process of creating 'static pages' - hence there are three basic steps:
select a template of a basic html page edit the template as a new page "post" the new page on the web site
Now bear with me, this is gonna sound a bit dopey, but it is based upon what I have done, prior to turning over most of this to bbedit.
make a directory with the basic pages each is named by what it templates blog.tmpl table.tmpl ....
have your application either take a 'template' name cf Getopts::Long or walk the dirBlock of the template directory with opendir() and readdir() present the list to the user, get the choice back copy the template to say /tmp invoke $EDITOR on it with system() then have it ftp it up to the web-site
Or do you want it to also validate that you have not injected brainSillies into the html as well?
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>