Enlightened Monks!

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:

<div class="news"> <h2>Something important</h2> <p>Something important happened again, and we're proud to announce + it.</p> <h4>Added by: John Doe, 01-01-1970</h4> </div>

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.

regards,
Luke Jefferson


In reply to Adding content blocks to a static website by blindluke

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.