Allows for greater control of the resulting <title> element by
specifying a pattern with some special tokens. This can be used to extend
the layout's title with the content's one, instead of simply overriding
it.
| Type | Name and description |
|---|---|
static String |
CONTENT_TITLE_KEY |
static String |
CONTEXT_CONTENT_TITLE |
static String |
CONTEXT_LAYOUT_TITLE |
static String |
CONTEXT_RESULTING_TITLE |
static String |
LAYOUT_TITLE_KEY |
static String |
PROCESSOR_NAME |
static int |
PROCESSOR_PRECEDENCE |
| Constructor and description |
|---|
TitlePatternProcessor
(TemplateMode templateMode, String dialectPrefix)Constructor, sets this processor to work on the 'title-pattern' attribute. |
| Type | Name and description |
|---|---|
protected void |
doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler)Process the layout:title-pattern directive, replaces the title text
with the titles from the content and layout pages. |
| Methods inherited from class | Name |
|---|---|
class AbstractAttributeTagProcessor |
getMatchingElementName, process, getMatchingAttributeName, getPrecedence, getTemplateMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class AbstractElementTagProcessor |
getMatchingElementName, process, getMatchingAttributeName, getPrecedence, getTemplateMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor, sets this processor to work on the 'title-pattern' attribute.
Process the layout:title-pattern directive, replaces the title text
with the titles from the content and layout pages.
Groovy Documentation