sunlabs.brazil.beanshell
Class BeanShellTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.beanshell.BeanShellServerTemplate
sunlabs.brazil.beanshell.BeanShellTemplate (view source)
- All Implemented Interfaces:
- TemplateInterface
public class BeanShellTemplate
- extends BeanShellServerTemplate
Template to define new templates in beanshell, and use them later on in
the current session (or page).
This adds to the capability of the template in the following way:
The variable "tagMap", a Properties object, may be used to associate
bsh code with a tag.
tagMap.put("mytag","do_mytag();");
will cause the method do_mytag()
to be called in response to:
<mytag...>. The variable "rewriteContext" will be available
to access the attributes of the tag.
Fields inherited from class sunlabs.brazil.template.Template |
debug |
Methods inherited from class sunlabs.brazil.template.Template |
done |
tagMap
public Properties tagMap
BeanShellTemplate
public BeanShellTemplate()
defaultTag
public void defaultTag(RewriteContext hr)
- if a mapping exists for this tag, run the code