Class 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.