I have been placed in the uncomfortable position of doing web design, on a site I'm only supposed to be programming for. Because I don't want to maintain any of the data more than once, I am using ssi to source in the files for the different screen areas. (ads, menus, etc) This is an Apache web server on linux, of course. I'd write it all in Perl, but then I would be stuck maintaining it! No, I want to hand it off as soon as we find an HTML person, and I don't want to require that they know Perl. So here is my problem:

How do I use my ssi template file, and insert the response to a submitted form in it? I don't want to use cookies; I took an Oath not to use them. What I really wish I could do, and maybe there is a way, is to force the apache server to take a pass at what my Perl program produces, so that I can just use an ssi in the script output to parse in the shtml. I know this is not possible in normal CGI, but since I am doing everything in mod_perl, perhaps there is a way to set up the handlers to do this? I could also read the template file in by hand, but this is not efficient. I could open a connection to the web server, and ask for the template shtml, but that also does not seem efficient.

Any Monks know the best way to do this?


In reply to mod_perl and ssi: mixing it up by Aighearach

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.