Class TitleTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.sunlabs.TitleTemplate
- All Implemented Interfaces:
TemplateInterface
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
init
(RewriteContext hr) Called before this template processes any tags.
-
Constructor Details
-
TitleTemplate
public TitleTemplate()
-
-
Method Details
-
init
Description copied from class:Template
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
defaultTag
-