|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.template.TOCTemplate
public class TOCTemplate
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.
Field Summary |
---|
Fields inherited from class sunlabs.brazil.template.Template |
---|
debug |
Constructor Summary | |
---|---|
TOCTemplate()
|
Method Summary | |
---|---|
boolean |
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. |
Methods inherited from class sunlabs.brazil.template.Template |
---|
debug, debug, done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TOCTemplate()
Method Detail |
---|
public boolean init(RewriteContext hr)
Template
init
in interface TemplateInterface
init
in class Template
public void tag_h1(RewriteContext hr)
TOC.[anchor]
to the text of the H1
tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |