Package sunlabs.brazil.template
Class Template
- java.lang.Object
-
- sunlabs.brazil.template.Template
-
- All Implemented Interfaces:
TemplateInterface
- Direct Known Subclasses:
AddHeaderTemplate
,AfterTemplate
,AllowGtTemplate
,AsteriskAGIHandler
,AsteriskHandler
,BSLTemplate
,ChangedTemplate
,ContentTemplate
,DateTemplate
,DebugTemplate
,DeCommentTemplate
,DelayHandler
,DigestTemplate
,DirectoryTemplate
,ExecTemplate
,FetchTemplate
,FormClientTemplate
,FormTemplate
,HighlightTemplate
,IdUniquificationTemplate
,IncludeTemplate
,ListTemplate
,LockTemplate
,MacroTemplate
,MiscTemplate
,ModifiedTemplate
,NoImageTemplate
,PlainTemplate
,PropsTemplate
,QueueTemplate
,RedirectTemplate
,RemoteHostTemplate
,ScriptEvalTemplate
,SetTemplate
,SMTPHandler
,SnarfTemplate
,SourceTemplate
,SubstAllTemplate
,TemplateTemplate
,TitleTemplate
,TOCTemplate
,UrlNavBarTemplate
,ValidateTemplate
,XmlTreeTemplate
public class Template extends java.lang.Object implements TemplateInterface
-
-
Field Summary
Fields Modifier and Type Field Description boolean
debug
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
debug(RewriteContext hr)
Add current tag as a comment to the htmlprotected void
debug(RewriteContext hr, java.lang.String msg)
Add a diagnostic comment to html output, if "debug" is set in the request properties.boolean
done(RewriteContext hr)
Called after all tags have been processed, one final chance.boolean
init(RewriteContext hr)
Called before this template processes any tags.
-
-
-
Method Detail
-
init
public boolean init(RewriteContext hr)
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
-
done
public boolean done(RewriteContext hr)
Called after all tags have been processed, one final chance.- Specified by:
done
in interfaceTemplateInterface
-
debug
protected void debug(RewriteContext hr, java.lang.String msg)
Add a diagnostic comment to html output, if "debug" is set in the request properties. The comment may be modified to prevent nested comments.- Parameters:
msg
- The message to include as a comment
-
debug
protected void debug(RewriteContext hr)
Add current tag as a comment to the html
-
-