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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
debug
(RewriteContext hr) Add current tag as a comment to the htmlprotected void
debug
(RewriteContext hr, 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.
-
Field Details
-
debug
public transient boolean debug
-
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
init
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
-
done
Called after all tags have been processed, one final chance.- Specified by:
done
in interfaceTemplateInterface
-
debug
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
Add current tag as a comment to the html
-