>check out
>http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_E
xecut
>
>find the package parameter.
>
>i haven't used this so far , but i think u can call it like this:
>HTML::Embperl::Execute ({ inputfile  => '/path/to/your.html',  package =>
__PACKAGE__,});

do so works, but will increase the memory usage, because your navbar is
compiled for _very_ page again. I would prefer to either pass $auth as
parameter:

[- Execute('navbar.epl', $auth); -]

So navbar.epl might look like:
<A HREF="categories.epl?auth=[+$param[0]+]">categories</A>

or put it in the Embperl request object (needs Embperl 1.3b5):

[- $r = shift ; # do this once at the top of your page -]
[- $r -> {auth} = $auth -]

[- Execute('navbar.epl'}; -]


So navbar.epl might look like:
[- $r = shift ; # do this once at the top of your page -]
<A HREF="categories.epl?auth=[+$r->{auth}+]">categories</A>


look into perldoc EmbperlObject on how to use the Embperl request object,
you can still use it with EmbperlObject to pass data, also you don't get the
inherence.

Gerald



Execute (


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



Andre Landwehr wrote:

> On Sun, Oct 15, 2000 at 10:08:00AM -0500, John Aughey wrote:
> > in an epl file to include a common nav bar in many .epl files.  I would
> > like to evaluate the navbar.epl script in the same namespace as the
> > calling script.  I want to do this so the navbar.epl has access to some
> > variables that are defined in the parent script such as an authorization
> > string.
>
> you may look in the mailarchives, a similar question was asked
> less than two weeks ago
>
> Andre
>
> --
>  /"\
>  \ /
>   X  ASCII Ribbon campaign against HTML E-Mail
>  / \
>
>                                                   ------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------------------------------------
>    Part 1.2Type: application/pgp-signature

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/



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





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

Reply via email to