in reply to CGI.pm and SSI

Three solutions:

Role your own SSI parser; namely, watch for the #include statements, and open up the file, and read it in, recursively following the #include links. This sorta works, and particularly if you mix static and dynamic pages.

Look at CGI::SSI. Haven't used it myself, but it should basically do the same as above.

Look into the Templating modules Text::Template, HTML::Template, and Template, all which easily support SSI-like features.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: CGI.pm and SSI
by Desdinova (Friar) on Mar 12, 2001 at 22:10 UTC
    As for rolling your own parser you can look into HTML::TokeParser or HTML::Parser. They will save you from having to deal with the actuall parsing of tags.

    Disclaimer: I haven't actually tried either of these with SSI tags so i dont if there are any pitfalls