|Perl Monk, Perl Meditation|
Adding content blocks to a static websiteby blindluke (Hermit)
|on Sep 06, 2011 at 09:29 UTC||Need Help??|
blindluke has asked for the
wisdom of the Perl Monks concerning the following question:
Every now and then, I have to add several news items to a static website. It's not a difficult task, but, as I have nothing to do with the website in question, I'd like to provide a tool for the users to publish content by themselves.
The content to be published is fairly simple:
The tool I had in mind is a Perl/Tk app, with four form fields: for the title, content, author and date. After the user fills in the blanks, and submits the data, some simple data validation would be performed. If the data is OK, the webpage will be downloaded from the server, and edited in place.
Some marker at the top of the news item list ( <!-- PLACE CONTENT BELOW --> ) would indicate the place to put new items, and would be replaced upon edit (by the same marker and the added news item). After the edit, the page would be uploaded to the server with Net::FTP.
I seek Perl Wisdom regarding the following questions:
All suggestions will be welcome.