I'm trying to implement a system for skinnable websites. I currently have one set up where all of the content pages are CGI scripts and they use HTML::Template to apply the skins. However, an URL will always point to a .cgi file. For example: http://foo.bar.bah/~stesla/skinned.cgi

What I want to do is make it so that, rather than having a CGI for each individual page, I want to be able to just have a template of some variety (I haven't fully designed it since I know this technical issue is still in my way). So that I can have the URL be: http://foo.bar.bah/~stesla/skinned.html but still have it run through the Perl that does the templating.

Clearly this is a job for mod_perl, however, it seems that what I want is a PerlTransHandler, and the documentation tells me that I cannot put a PerlTransHandler into a .htaccess file. Since I don't have access to the server-wide Apache configuration, I have to do any configuring in an .htaccess file.

Any suggestions?


In reply to Alternatives to PerlTransHandler? by SamQi

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.