You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Slemko <ma...@znep.com> on 1998/07/18 06:10:01 UTC
Re: mod_include/2633: unclair mod_include #include (fwd)
The following reply was made to PR mod_include/2633; it has been noted by GNATS.
From: Marc Slemko <ma...@znep.com>
To: Apache bugs database <ap...@apache.org>
Cc: Subject: Re: mod_include/2633: unclair mod_include #include (fwd)
Date: Fri, 17 Jul 1998 20:44:36 -0700 (PDT)
---------- Forwarded message ----------
Date: Sat, 18 Jul 1998 02:27:45 +0200 (CEST)
From: Dieter Demerre <de...@ace.ulyssis.student.kuleuven.ac.be>
Reply-To: Dieter Demerre <dd...@acm.org>
To: marc@hyperreal.org
Subject: Re: mod_include/2633: unclair mod_include #include
On 16 Jul 1998 marc@hyperreal.org wrote:
> Synopsis: unclair mod_include #include
>
> State-Changed-From-To: open-feedback
> State-Changed-By: marc
> State-Changed-When: Thu Jul 16 10:08:08 PDT 1998
> State-Changed-Why:
> Erm... I'm afraid I don't understand your concern. Includes
> can be nested and the docs say they can, so what is the problem?
That's correct, but I interpreted it as thought the text is included and
then reparsed, but actually, the text to be included is retrieved, and
then included into the original test.
This way nesting can only be done using nested shtml files
while I thought it would be done with any file
e.g.
f1.shtml:
hi
<!--#include virtual="./f2.txt" -->
hi again
f2.txt
ho
<!--#fsize virtual="./f1.shtml" -->
hoho
will output:
hi
ho
<!--#fsize virtual="./f1.shtml" -->
hoho
hi again
while if you rename f2.txt onto f2.shtml (and also in the
include-statement in f1.shtml, you will get:
hi
ho
1k
hoho
hi again
So I'd clarify that parsing of the to be included file is done (when
allowed so when an shtml-file) before including. The text states this but
not specifically that the to be included file should be an shtml file.
After I discovered this difference, I understood the statement fully, but
actually some ennerving time too late for me
The output the server would return will not be parsed if it weren't an
shtml file.
Now I come to think of it, I don't know if I wasn't just not-enough
allertive.
****** Greetings from *** Groetjes vanwege******
Dieter Jaap E. Demerre - mailto:ddemerre@acm.org
http://ace.ulyssis.student.kuleuven.ac.be/~dede/
------------------------------------------------