raptor wrote:
>
> hi me again :"),
>
> I'm tring to do something like this :
>
> <!--#include file=$someVAR\_search.inc-->
>
Right, if you want an inline include, you cannot use
variables for the file attribute. It must be hardcoded
and that string will be interpreter literally as a file
name at compile time.
> but 'cause the vars are not interpolated at-this-place i tried also :
>
> $Response->Include("$someVAR\_search.inc");
>
> the problem is that it seems that the include is not inlined as stated in
> the docs..(I need it inlined not compiled as separate sub).
>
$Response->Include($file, @args) always compiles an include as a
dynamic include, so it gets called as a subroutine with
@args passed to it.
> <docs snip>By default, all includes will be inlined unless called with an
> args parameter.</snip>
>
All old style SSI includes will be inlined by default without
an args parameter.
So, why do you need inline includes anyway? Normally scoping
issues can be solved pretty well by passing arguments to
an include or using objects and globals for data sharing.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]