Avitar has asked for the wisdom of the Perl Monks concerning the following question:
hello.cgi:<HTML lang=en> <HEAD><TITLE>Nested shtml Menu Test</TITLE></HEAD><BODY> <!--#include virtual="/cgi-bin/hello.cgi"--> </BODY></HTML>
hello.template:open(DATA,"hello.template"); @template=<DATA>; close(DATA); print "Content-type: text/html\n\n" for($a=0;$a<=$#template;$a++){ print $template[$a]; }
nest.cgi:<!--#include virtual="/cgi-bin/nest.cgi"-->
part of the problem I have faced is that custom directives in apache are not obeyed by CGI::SSI so i would like to rule out that module unless someone has some advice on a workaround. ------------- update: I found CGI::SSI_Parse which does almost everything I need. I am gutting the module to work the way i need. Ty for all the help!print "Content-type: text/html\n\n" print "<BR><B>Nesty Nest";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl executing SSI/ include virtual
by epoptai (Curate) on Jul 31, 2004 at 04:05 UTC | |
by Avitar (Acolyte) on Aug 18, 2004 at 18:32 UTC | |
|
Re: Perl executing SSI/ include virtual
by beable (Friar) on Jul 31, 2004 at 03:08 UTC | |
by Avitar (Acolyte) on Aug 18, 2004 at 18:44 UTC | |
|
Re: Perl executing SSI/ include virtual
by ggg (Scribe) on Aug 02, 2004 at 00:03 UTC | |
by Avitar (Acolyte) on Aug 18, 2004 at 18:41 UTC |