There are some helper methods to allow you to add text/markup to the <head>
section, as well as modify the <body> tag attributes.  And a link function
for specifying links to other templates.

        modelRoot.put("setTitle", new SetTitleModel(data));
        modelRoot.put("addToHead", new AddToHeadModel(data));
        modelRoot.put("addTemplatesToHead", new
AddTemplatesToHeadModel(data));
        modelRoot.put("setBodyAttributes", new
SetBodyAttributesModel(data));

As well as the ${link("/path/to/foo.html")}

These allow you to specify stuff in the template that actually "belongs"
there.  Several other attributes from the RunData object are added as well.


----- Original Message -----
From: Travis Low <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 12, 2000 1:02 PM
Subject: setting document title


> I'm still looking at BaseFreeMarkerScreen.java and
> TurbineFreeMarkerService.java and I'm not sure of the best way to set
> the title of the document.  In BaseFreeMarkerScreen.doBuild(), I can
> do:
>
>    data.getPage().setTitle(new Title("Base FreeMarker Screen"));
>
> Is there a reason NOT to do that?
>
> -- Travis Low
>    [EMAIL PROTECTED]
>    1-301-592-6305 (direct)
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to