sunlabs.brazil.template
Class Template

java.lang.Object
  extended by 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
 boolean debug
           
 
Constructor Summary
Template()
           
 
Method Summary
protected  void debug(RewriteContext hr)
          Add current tag as a comment to the html
protected  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public transient boolean debug
Constructor Detail

Template

public Template()
Method Detail

init

public boolean init(RewriteContext hr)
Called before this template processes any tags.

Specified by:
init in interface TemplateInterface

done

public boolean done(RewriteContext hr)
Called after all tags have been processed, one final chance.

Specified by:
done in interface TemplateInterface

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