Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • See Apache::Template - like Apache::Registry, but for templates instead of CGI.pm scripts.
    --
    • Randal L. Schwartz
    • Stonehenge
    • Thanks Randal. Now all I have to do is figure out how in the hell to get it installed without gcc on the machine.
      • What's your OS ? and how did you install mod_perl without gcc :) ?
        • Dare I say it's a hosting company... where they/I have about 200 perl modules installed, but for some reason this isn't one of them. They don't have gnu tools for security reasons, of course for another 15 bucks a month I can get them. I'm stuck with them for another 1/2 a year, so I have to make due. Unfortunately I need gcc for the xs stuff.
  • First off, I am not a fan of Apache::Template, or of mapping your URLs directly to the name of a template file. I think the URL and the name of the file you're going to run should have only a loose mapping, therefore I usually just map my URL to a handler, and then let the handler decide which template to run based on what it's doing. For example, requesting /login/ might result in running login_form.html, or maybe login_error.html, etc.

    However, if I were trying to do what you are doing (map /foo.html to

    • Very helpful, and nice since I don't need to install any additional modules. I will goof around with the handler... I was using Location directive instead of the Files so things were a little goofy.

      Appreciate the comment.