I have some content for a web site that is not really "dynamic", but can be changed via a form by the admin. For one, there's like 3 strings to fill in and they'll be short, as well as an image URL to provide. The site's template will just plug in the strings. So that could easily use the same config system I'm using already (config general), assuming it supports escaping out anything odd.

Another thing is a monthly news item. Old ones will be archived to a page that lists them all. So, append to it each time it is updated. This will be a whole paragraph, and might contain some html tags. Does Config::General have a "here document" concept?

Or, what would be a more suitable format to save these as text files? XML sounds like too much trouble, might clash with markup within the paragraph (especially if it contains errors!) and is also slow to read and parse back in when the page is generated. I'd like something light duty.

Any suggestions?


In reply to Choosing a format to save some data by John M. Dlugosz

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.