I'm a big fan of HTML::Mason, but have never actually had to use it outside of mod_perl. It is rumored to work in a basic CGI environment, though in a somewhat kludgy and slow way. (at least when I checked over a year ago)

Here is a post that should help you take it for a test drive http //forum.swarthmore.edu/epigone/mason/ gimpswumfrex/Pine.SOL.3.96.990917144751.17640B-100000@simpukka

Essentially this method runs all mason requests through a cgi script that calls the mason files for you. It allows you to maintain a single code base that will run under both mod_perl and CGI. Although you'll have to forgo certain fancy mod_perl only features, (like overriding the authentication phase with your own custom perl module, or dynamically configuring apache depending on which machine it is running using perl tags) this shouldn't be an issue if you start in a CGI environment. (a site built on mod_perl first might have difficulty switching back to CGI, if it used these "fancy" features)

You'll also probably have to customize httpd.conf a bit for this to work. If that isn't an option, I'm not sure if this solution will work for you.

-Blake


In reply to Re: Web framework under both mod_perl and CGI by blakem
in thread Web framework under both mod_perl and CGI by marvi

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.