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 voiddebug(RewriteContext hr) Add current tag as a comment to the htmlprotected voiddebug(RewriteContext hr, String msg) Add a diagnostic comment to html output, if "debug" is set in the request properties.booleandone(RewriteContext hr) Called after all tags have been processed, one final chance.booleaninit(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:
initin interfaceTemplateInterface
-
done
Called after all tags have been processed, one final chance.- Specified by:
donein 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
-