On Tue, 30 May 2000, you wrote:
> Anyway a workaround that works, although it's not very pretty is to say:
>
> #set $junk = $data.Page.Body.setBgColor("ffffff")
>
> Unless anyone can see a prettier way out of this?
To stay consistent with our goal of making the use of WebMacro
templates fairly trivial for page authors, we need to have
somthing like a Body tag: $body.setBgColor("#ffffff") that is
automatically added to the context like title is.
As it stands now, the only parts of the Page we can't get to via
WM templates is: the <HEAD> and inner <BODY> tag. Eventually we
need to deal with adding Script to the head via a tag somehow.
Maybe, we can consolidate them all into one object that's automatically
placed in the context. Such as -
$pageAttributes.setTitle()
$pageAttributes.setKeyword()
$pageAttributes.setBgColor()
etc....
--
dave
[EMAIL PROTECTED]
----------------------
Just your average Joe armed with an Emacs editor.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]