sunlabs.brazil.sunlabs
Class TitleTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.sunlabs.TitleTemplate (view source)
- 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.
Fields inherited from class sunlabs.brazil.template.Template |
debug |
Methods inherited from class sunlabs.brazil.template.Template |
done |
TitleTemplate
public TitleTemplate()
init
public boolean init(RewriteContext hr)
- Description copied from class:
Template
- Called before this template processes any tags.
- Specified by:
init
in interface TemplateInterface
- Overrides:
init
in class Template
defaultTag
public void defaultTag(RewriteContext hr)