sunlabs.brazil.template
Class DebugTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.DebugTemplate
All Implemented Interfaces:
java.io.Serializable, TemplateInterface

public class DebugTemplate
extends Template
implements java.io.Serializable

Template class for printing stuff to stderr (for template debugging). This class is used by the TemplateHandler.

A new HTML tag, <debug> is defined. Any text between the <debug and > is printed on stderr, along with the session id and the url. Variable substitutions of the form ${...} are performed on the text.

The property debug must be present for this template to function. Otherwise, all debug tags are removed.

debug
If this configuration parameter is true, debugging is enabled.

Version:
%V% 04/04/05
Author:
Stephen Uhler
See Also:
Serialized Form

Constructor Summary
DebugTemplate()
           
 
Method Summary
 boolean init(RewriteContext hr)
          Called before this template processes any tags.
 void tag_debug(RewriteContext hr)
           
 
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

DebugTemplate

public DebugTemplate()
Method Detail

init

public boolean init(RewriteContext hr)
Description copied from class: Template
Called before this template processes any tags.

Specified by:
init in interface TemplateInterface
Overrides:
init in class Template

tag_debug

public void tag_debug(RewriteContext hr)