Package sunlabs.brazil.template
Class DebugTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.template.DebugTemplate
- All Implemented Interfaces:
Serializable
,TemplateInterface
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
init
(RewriteContext hr) Called before this template processes any tags.void
-
Constructor Details
-
DebugTemplate
public DebugTemplate()
-
-
Method Details
-
init
Description copied from class:Template
Called before this template processes any tags.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
tag_debug
-