sunlabs.brazil.template
Class TemplateTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.TemplateTemplate
All Implemented Interfaces:
TemplateInterface

public class TemplateTemplate
extends Template

Template class for processing markup through a sequence of template filters. This class processes:

 <template data=... [token=...] [prefix=...] [ignore=true|false]>
 
data
contains the markup to process.
token
names the request property that contains the class names or tokens that will define the templates that will process the data (see the TemplateFilter discussion regarding the templates property). It defaults to "templates" with this class's prefix.
prefix
Which prefix to assign the templates, if the "token" list contains class names. Defaults to our prefix.
ignore
If true, the result of the template processing is ignored. by default it is inserted into the resultant markup.

The templates for processing each token are setup only once, the first time the token is referenced.

Version:
@(#)TemplateTemplate.java 2.1
Author:
Stephen Uhler

Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
TemplateTemplate()
           
 
Method Summary
 void tag_template(RewriteContext hr)
           
 
Methods inherited from class sunlabs.brazil.template.Template
debug, debug, done, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTemplate

public TemplateTemplate()
Method Detail

tag_template

public void tag_template(RewriteContext hr)