Re: Apache::ASP #include virtual loses variables

2000-05-21 Thread Joshua Chamas
Ime Smits wrote: | Well, I would like to suggest that you consider including !--#include | virtual-- in the Apache::ASP distribution, so that included files use the | same namespace. It doesn't make sense logically that include virtual | behaves differently from include file (other than the

Re: Apache::ASP #include virtual loses variables

2000-05-21 Thread Philip Mak
So, there's no way in Apache::ASP to include a file by specifying a path relative to DOCUMENT_ROOT, or relative to the directory of the current file (which is not necessarily equivalent to the request URI, if the current file is included)? I managed to get my site to work using !--#include

Re: Apache::ASP #include virtual loses variables

2000-05-21 Thread Joshua Chamas
Philip Mak wrote: So, there's no way in Apache::ASP to include a file by specifying a path relative to DOCUMENT_ROOT, or relative to the directory of the current file (which is not necessarily equivalent to the request URI, if the current file is included)? I managed to get my site to

Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
Hello, I have stumbled upon an issue with Apache::ASP !--#include virtual-- directive. Included files do not seem to be able to access the same scope of variables. I am using the following test program: File 1.inc: !--#include virtual="2.inc"-- % $test .= '1'; % p$test = %=$test%/p File

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Joshua Chamas
Use file includes. virtual includes are meant to execute anything and include its output, and is handles by Apache::SSI outside of Apache::ASP. File includes will be executed as perl asp subroutines in the same perl namespace as the including script. -- Joshua

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
On Sat, 20 May 2000, Joshua Chamas wrote: Use file includes. virtual includes are meant to execute anything and include its output, and is handles by Apache::SSI outside of Apache::ASP. File includes will be executed as perl asp subroutines in the same perl namespace as the including

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Joshua Chamas
Philip Mak wrote: I see. There are two problems that I have with file includes though: (1) I cannot specify a file's location relative to $ENV{'DOCUMENT_ROOT'}. (2) I cannot specify a file's location relative to the directory the current file is in. For #1, I want to do something

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
On Sat, 20 May 2000, Joshua Chamas wrote: !--#include virtual="/code/header.asp"-- !--#include virtual="/code/footer.asp"-- For #1, know includes will be picked up from your Global directory, so you can use that repository to share includes, instead of some DOCUMENT_ROOT location. You

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| Well, I would like to suggest that you consider including !--#include | virtual-- in the Apache::ASP distribution, so that included files use the | same namespace. It doesn't make sense logically that include virtual | behaves differently from include file (other than the way the |