Re: use lib in EmbperlObject

2002-08-26 Thread Gerald Richter
> >> 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. >

Re: use lib in EmbperlObject

2002-08-21 Thread Gerald Richter
> > 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

Re: use lib in EmbperlObject

2002-08-16 Thread Kee Hinckley
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'

Re: use lib in EmbperlObject

2002-08-15 Thread Gerald Richter
> >> 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

Re: use lib in EmbperlObject

2002-08-15 Thread Kee Hinckley
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.

Re: use lib in EmbperlObject

2002-08-15 Thread Gavin Carr
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.

use lib in EmbperlObject

2002-08-15 Thread Kee Hinckley
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

Re: Adding *Page Specific* Title , Keywords and Description Meta Tags in EmbperlObject Pages?

2002-03-18 Thread gus
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

Adding *Page Specific* Title , Keywords and Description Meta Tags in EmbperlObject Pages?

2002-03-18 Thread Rajesh Kumar Mallah
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

Re: Subroutines in EmbperlObject

2001-05-25 Thread Wim Kerkhoff
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

Re: Subroutines in EmbperlObject

2001-05-24 Thread Gerald Richter
> 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

Subroutines in EmbperlObject

2001-05-24 Thread Wim Kerkhoff
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

Re: Possible bugs in EmbperlObject: 1.3b7, Apache 1.3.12, mod_perl 1.24

2000-12-13 Thread Gerald Richter
> > 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

Re: Possible bugs in EmbperlObject: 1.3b7, Apache 1.3.12, mod_perl 1.24

2000-12-13 Thread Neil Gunton
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

Re: Possible bugs in EmbperlObject: 1.3b7, Apache 1.3.12, mod_perl 1.24

2000-12-13 Thread Gerald Richter
> 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

Possible bugs in EmbperlObject: 1.3b7, Apache 1.3.12, mod_perl 1.24

2000-12-12 Thread Neil Gunton
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

Re: requested file reference in EmbperlObject

2000-08-18 Thread Gerald Richter
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

requested file reference in EmbperlObject

2000-08-18 Thread Volker Hess
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?

Re: [* in EmbperlObject

2000-08-09 Thread Gerald Richter
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 { > *]

Re: [* in EmbperlObject

2000-08-09 Thread Andre Landwehr
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

RE: [* in EmbperlObject

2000-08-09 Thread Jack Cushman
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

[* in EmbperlObject

2000-08-09 Thread Andre Landwehr
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-

Re: passing variables in EmbperlObject pages

2000-08-08 Thread Gerald Richter
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

passing variables in EmbperlObject pages

2000-08-08 Thread Andre Landwehr
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 ---