> Perhaps a directive which allows certain file extensions to be processed
> by EmbperlObject::Execute(*), but not parsed and interpreted internally.

Further to my earlier email, it occurs to me that I am being too
restrictive here. In fact, ANY file which is included by base.html (or
whatever EMBPERL_OBJECT_BASE is) could in theory be a file which you
simply want to include, but not be processed internally. This is not
specific to the Execute(*) case. But currently, in order for a file to
trigger EmbperlObject it is necessary for it to also be parsed
internally. What we may need is a setting which allows file types to be
used by EmbperlObject, but not parsed.

For example:

In httpd.conf I have (summarized):

DocumentRoot /www/site/htdocs
DocumentIndex index.html
PerlSetEnv EMBPERL_OBJECT_BASE base.html
<Directory "/www/site/htdocs/">
        <FilesMatch ".*\.(epl|htm|html)$">
                SetHandler  perl-script
                PerlHandler HTML::EmbperlObject
                Options     ExecCGI
        </FilesMatch>
</Directory>

And my directory structure is initially:

/www/site/htdocs/
/www/site/htdocs/base.html
/www/site/htdocs/index.html
/www/site/htdocs/head.html
/www/site/htdocs/foot.html

And let's say base.html contains the following:

[- Execute ('head.html') -]
[- Execute (*) -]
[- Execute ('foot.html') -]

Now, we may add subdirectories as follows:

/www/site/htdocs/users/neil/
/www/site/htdocs/users/neil/index.html
/www/site/htdocs/users/neil/head.html
/www/site/htdocs/users/neil/foot.html

This is where it gets interesting.

In this case, I want EmbperlObject to be triggered when the browser
points to /users/neil/. But I may not want the files in /users/neil/ to
be parsed - just included by base.html. Right now there is nothing (I
believe) between not having files handled by Embperl at all, and having
them be parsed internally. This is the crux of the matter.

Hope this is clear... I may be missing something, in which I case I
apologise in advance...

Thanks again for your time

-Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to