On Tuesday, April 16, 2002, at 11:57 AM, John McNally wrote: > David Wynter wrote: >> I suppose I could add the titles specific to the screens in the >> properties >> file too, but it is not as compact as this as there are few roles in >> the >> system and quite a lot more screens. > > This is what we did in scarab, which uses t3. Some sort of meta-data > outside the screen template is needed, at least I have not come up with > a better solution.
The Perl module HTML::Mason has an interesting solution. Their equivalent of the screen/template can set template properties. The equivalent of the layout can read those properties before rendering the content of the template. I like that usage. It lets you keep the "meta-data" in the template. I don't know enough about the internals of Velocity to know if this would be possible, but if the template could set a property in the context and the layout could get a handle on that context before velocity renders the template, then the same sort of usage could be employed here. -Eric -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
