> >> On a related topic. If I do a "use somelibrary" in a template, and
> >> it imports some functions into the name space, it would be nice to be
> >> able to use them in the files that are using that template.
> >
> > Because of the different namespaces of those files this won't work,
sorry.
>
>
> Here's what I have:
>
> SiteInit.html
> [! use lib "/usr/local/PureMessaging/lib"; !]
> Template.html
> [- Execute({ isa => 'SiteInit.html' }); -]
> Template.html: [+ join(", ", @INC) +]
> [- Execute('*') -]
> index.html
> index.html: [+ join(", ", @INC) +]
>
> Running that the first time give
At 7:25 AM +0200 8/16/02, Gerald Richter wrote:
> > >> Is there any way to put a "use lib" command in a called routine (e.g.
>> >> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later
>> >> "use" commands?
>
>use lib is global, because it affects the global @ISA, so it doesn'
> >> Is there any way to put a "use lib" command in a called routine (e.g.
> >> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later
> >> "use" commands?
use lib is global, because it affects the global @ISA, so it doesn't matter
where you put it, it will affect all use stateme
At 8:55 AM +1000 8/16/02, Gavin Carr wrote:
>On Thu, Aug 15, 2002 at 04:12:06PM -0400, Kee Hinckley wrote:
>> Is there any way to put a "use lib" command in a called routine (e.g.
>> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later
>> "use" commands? Any other suggestions.
On Thu, Aug 15, 2002 at 04:12:06PM -0400, Kee Hinckley wrote:
> Is there any way to put a "use lib" command in a called routine (e.g.
> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later
> "use" commands? Any other suggestions. I hate having to put it in
> every single file.
Is there any way to put a "use lib" command in a called routine (e.g.
[- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later
"use" commands? Any other suggestions. I hate having to put it in
every single file. (Right up there with [$ var $this $][- $this =
shift -] at the begi
On Tue, Mar 19, 2002 at 09:57:01AM +0530, Rajesh Kumar Mallah wrote:
> I have a website that is template driven and i use EmbperlObject for that.
> The problem is that all the pages share the same template (that is of course
> expected!)
> and they also share the, tags
> also.
> the latter
Dear Folks ,
I have a website that is template driven and i use EmbperlObject
for that.
The problem is that all the pages share the same template (that is
of course expected!)
and they also share the , tags also.
the latter is expected of EmbperlObject but is causing
problem in my websi
Gerald Richter wrote:
>
> > base.epl:
> >
> > [- Execute ('constants.inc') -]
> >
> > [- Execute ('init.inc') -]
> >
> > [- Execute ({ inputfile => 'subs.inc', import => 1 }) -]
> >
>
> As far as I see the import => 1 is the problem. This imports only [$sub$]
> subs but not normal Perl subs.
Ah
> base.epl:
>
> [- Execute ('constants.inc') -]
>
> [- Execute ('init.inc') -]
>
> [- Execute ({ inputfile => 'subs.inc', import => 1 }) -]
>
As far as I see the import => 1 is the problem. This imports only [$sub$]
subs but not normal Perl subs.
If this is the only place where you are importing
I've been following Neil's awesome tutorial on Embperl Object on a new
project we're working on.
http://perl.apache.org/embperl/IntroEmbperlObject.pod.7.html#Subroutines_in_EmbperlObject
I've been creating subroutines, such as the $req->title() example, that
are initially created by subs.epl whi
> > Mmm, strange, does it change anything if you replace the
> >
> > return &NOT_FOUND ;
> >
> > with
> >
> > return 404 ;
> >
> > in line 289 of EmbperlObject.pm ?
>
>
> No, same behavior. I assume that what I needed to do here was change the
> line, and then just do the whole make-install
Gerald Richter wrote:
>
> > I have EMBPERL_OBJECT_BASE set to base.html, which in turn does Execute
> > (*). The documentation says that if the specified file is not found and
> > EMBPERL_OBJECT_FALLBACK is not defined, then a 404 is returned as
> > normal. However I just get an "internal server
> I have EMBPERL_OBJECT_BASE set to base.html, which in turn does Execute
> (*). The documentation says that if the specified file is not found and
> EMBPERL_OBJECT_FALLBACK is not defined, then a 404 is returned as
> normal. However I just get an "internal server error" message, not a
> 404. I se
I think there may be a bug or two in the code which handles the case
where a non-existent file is requested by a browser, e.g.
http://www.mysite.com/.html, when EmbperlObject is being used.
I have EMBPERL_OBJECT_BASE set to base.html, which in turn does Execute
(*). The documentation says tha
Hi,
>
> Using EmbperlObject I need a reference to the requested file to do
> something like this in EMBPERL_OBJECT_BASE:
>
> $mtime = (stat($filename))[9]
>
> I tried using the request object from mod_perl ($r->filename) but this is
> a reference to EMBPERL_OBJECT_BASE. Does you have a simple solu
Hi,
Using EmbperlObject I need a reference to the requested file to do
something like this in EMBPERL_OBJECT_BASE:
$mtime = (stat($filename))[9]
I tried using the request object from mod_perl ($r->filename) but this is
a reference to EMBPERL_OBJECT_BASE. Does you have a simple solution?
Hi,
> it seems that I cannot use [* *] in pages handled by
> EmbperlObject. Since I can't find documentation for this I ask
> here: Why is that so and how can I circumvent it for
> constructions like the following without printing each line of
> HTML with a perl print statement?
>
> [*
> do {
> *]
On Wed, Aug 09, 2000 at 11:48:20AM -0400, Jack Cushman wrote:
> first of all, that should be
> [+ $rec->{name} +]
> or
> [- print OUT $rec->{name} -]
> do you still have a problem once that is changed?
Before I did everyting with [* *] sections and an interaction
between a loop in [* *] and a pri
first of all, that should be
[+ $rec->{name} +]
or
[- print OUT $rec->{name} -]
do you still have a problem once that is changed?
> -Original Message-
> From: Andre Landwehr [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 09, 2000 11:41 AM
> To: Modperl Lis
Hi,
it seems that I cannot use [* *] in pages handled by
EmbperlObject. Since I can't find documentation for this I ask
here: Why is that so and how can I circumvent it for
constructions like the following without printing each line of
HTML with a perl print statement?
[*
do {
*]
[* print "$rec-
Hi,
> I have an EmbperlObject base document with the obvious stuff like
> HTML headers in it. I want to set several
> variables there, too, but they are obviously not in the same
> scope as the page included with Execute ("*"). Is there a way to pass
> variable values to that page?
>
Use Embperl
Hi,
I have an EmbperlObject base document with the obvious stuff like
HTML headers in it. I want to set several
variables there, too, but they are obviously not in the same
scope as the page included with Execute ("*"). Is there a way to pass
variable values to that page?
Andre
---
24 matches
Mail list logo