On Sun, 2002-05-26 at 22:39, Warner Onstine wrote:
> <snip/>
> > > - doing a $page.setTitle() in a screen and doing a $page.Title in the
> > > layout works in 2.1, not in 3.0, it sends back nothing.
> >
> > Yes, this isn't working. I broke it, haven't fixed it yet.
> 
> When will this be fixed Jason? I'm currently getting, $page.Title is an
> invalid reference.
> 
> Or is it fixed in the tree already?

With direct streaming it is not possible unless you either have a
supplementary mechanism to provide the title, which is what Scarab does
with a properties file I believe, or evaluate the screen template before
the layout template is rendered. This also means that the screen
template is evaluated twice.

If the output is buffered it is completely possible then you can
evaluate the screen template, which sets the title values, and take the
resulting text and insert it into the context against which the layout
template is rendered. This is what is done in 2.x, the full buffering
which is inefficient but allows conveniences which people are used to.

That said, I believe what is in turbine3 as it stands is highly
deficient in terms of comprehensibility and rational. I only got about a
third of the way through before the point I just couldn't find any time
to finish a decent solution.

So in short, your best solution at the moment is to use the mechanism
that Scarab has cooked up which is the best compromise between being
able to stream directly and to allow screen template values to pushed up
into the layout template.

> -warner
> 
> <snip/>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]

http://tambora.zenplex.org


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

Reply via email to