perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@inodes.org>
Subject Re: Subroutine Inheritance
Date Thu, 26 May 2005 22:53:27 GMT
At Wed, 25 May 2005 10:16:55 -0400, Derrick Spell wrote:
> > In your page you say
> > [! Execute ({isa => 'title.epl'}) !]
> > In your title.epl you say
> > [! Execute ({isa => '../title.epl'}) !]
> > <title>[+ $req->title() +]</title>

Since you are setting the title per directory rather than per file
anyway (via "title.epl"), an alternative would be to simply use
Embperl::Object's inheritance directly, ie:

/title.epl:
 Level 0 title

/base.epl:
 ...
 <title>[- Execute('title.epl') -]</title>
 ...

/sub/dir/title.epl:
 [- Execute('../title.epl') -]: A sub title

-- 
 - Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message