Class TOCTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.template.TOCTemplate
- All Implemented Interfaces:
TemplateInterface
Template class for extracting table of contents information
out of an html page by examining the "H1" tags, and setting
request properties that can be used to build a table of contents.
This class is used by the TemplateHandler.
- Version:
- @(#)TOCTemplate.java 2.2
- Author:
- Stephen Uhler
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
init
(RewriteContext hr) Called before this template processes any tags.void
tag_h1
(RewriteContext hr) Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor]
to the text of theH1
tag.
-
Constructor Details
-
TOCTemplate
public TOCTemplate()
-
-
Method Details
-
init
Description copied from class:Template
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
tag_h1
Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor]
to the text of theH1
tag.
-