Gerald Richter wrote:
> ... 
>
> Rewrite it as
> 
> <title>[- Execute ('*#title') -]</title>
> 
> and put a
> 
> Execute (filename => '*', 'import' => 0') ;
> 
> at the top of base.html (this line is only neccessary for now, it will be
> automaticly executed in the next release)
> 
> your test.html defines
> 
> [$sub title $] My Title goes here [$endsub$]
> 
> ...

Hi,

  I'm playing with your solution and while it seems to work, but I've
found three more problems:

- I need to post-process result of the Execute so I try 

        <title>[- Execute({ inputfile => '*#title', output => \$x }) -] [+
process($x) +]</title>

but EmbperlObject complains file '*#title' doesn't exists. Fortunately
following works

        <title>[- Execute({ inputfile => '*', sub => 'title', output => \$x })
-] 
        [+ process($x) +]</title>

- I'm having problems with caching Execute results: even when I turn it
off with mdate => undef

        <title>[- Execute({ inputfile => '*', sub => 'title', output => \$x,
mtime => undef }) -] 
        [+ process($x) +]</title>

it still shows old values. The problem matifests itself in several
browsers but reload would always fix it: I guess it must be
EmbperlObject problem. (I'll make simplified case if it's necessary).

- Irregularly but quite often EmbperlObject fails with 'function not
defined' even if the function is normal perl sub defined in the
base.html - reload always fixes it.

And finally I guess it might be a good idea to (make possible to) export
base.html subs so they're available in the pages.

- Robert

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

Reply via email to