Package sunlabs.brazil.sunlabs
Class TitleTemplate
- java.lang.Object
-
- sunlabs.brazil.template.Template
-
- sunlabs.brazil.sunlabs.TitleTemplate
-
- All Implemented Interfaces:
TemplateInterface
public class TitleTemplate extends Template
Template to look up "title" attributes in a database, and rewrite them. Looks for "title." in the properties, where "content" is the current value of the title. Firefox displays "balloon help" when it sees a "title" attribute. This allows us to put the titles in a table, and substitute them into the document at run time. - config
- This specifies the name of a properties file that contains the help table. This is consulted if the help test is not present in request.props. The file is interpreted relative to the document root, and may exist as a resource.
Any ${..} substitutions are done when the text is mapped. Make sure no "'s or '>'s occur in the text.
ToDo: If the title isn't there, we could look for "id" and/or "name", but we don't.
-
-
Constructor Summary
Constructors Constructor Description TitleTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defaultTag(RewriteContext hr)
boolean
init(RewriteContext hr)
Called before this template processes any tags.
-
-
-
Method Detail
-
init
public boolean init(RewriteContext hr)
Description copied from class:Template
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
defaultTag
public void defaultTag(RewriteContext hr)
-
-